Spelling and doc fixes

This commit is contained in:
Jon Surrell 2016-12-10 16:12:03 +01:00
parent 60314e5ba1
commit d88ea4ecea
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ abstract class WC_Log_Handler {
/**
* Minimum log level this handler will process.
*
* @var int 0-8 minimum level severity for handling log entry.
* @var int 0-7 minimum level severity for handling log entry.
* @access private
*/
protected $threshold;
@ -85,7 +85,7 @@ abstract class WC_Log_Handler {
* Decode level string into integer.
*
* @param string $level emergency|alert|critical|error|warning|notice|info|debug
* @return int 0 (debug) - 8 (emergency) or -1 if level is not valid
* @return int 0 (debug) - 7 (emergency) or -1 if level is not valid
*/
public static function get_level_severity( $level ) {
if ( array_key_exists( $level, self::$log_levels ) ) {

View File

@ -1442,7 +1442,7 @@ function wc_safe_dump( $expression ) {
array( 'func' => 'serialize', 'args' => array( $expression ) ),
);
$alternatives = apply_filters( 'woocommerce_safe_sump_alternatives', $alternatives, $expression );
$alternatives = apply_filters( 'woocommerce_safe_dump_alternatives', $alternatives, $expression );
foreach ( $alternatives as $alternative ) {
if ( function_exists( $alternative['func'] ) ) {