From d88ea4eceade93f0268249cb822a30475745cef4 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Sat, 10 Dec 2016 16:12:03 +0100 Subject: [PATCH] Spelling and doc fixes --- includes/abstracts/abstract-wc-log-handler.php | 4 ++-- includes/wc-core-functions.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/abstracts/abstract-wc-log-handler.php b/includes/abstracts/abstract-wc-log-handler.php index 69fceee3125..1136c68b788 100644 --- a/includes/abstracts/abstract-wc-log-handler.php +++ b/includes/abstracts/abstract-wc-log-handler.php @@ -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 ) ) { diff --git a/includes/wc-core-functions.php b/includes/wc-core-functions.php index 015814d4221..bef4fc0a5cd 100644 --- a/includes/wc-core-functions.php +++ b/includes/wc-core-functions.php @@ -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'] ) ) {