Spelling and doc fixes
This commit is contained in:
parent
60314e5ba1
commit
d88ea4ecea
|
@ -20,7 +20,7 @@ abstract class WC_Log_Handler {
|
||||||
/**
|
/**
|
||||||
* Minimum log level this handler will process.
|
* 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
|
* @access private
|
||||||
*/
|
*/
|
||||||
protected $threshold;
|
protected $threshold;
|
||||||
|
@ -85,7 +85,7 @@ abstract class WC_Log_Handler {
|
||||||
* Decode level string into integer.
|
* Decode level string into integer.
|
||||||
*
|
*
|
||||||
* @param string $level emergency|alert|critical|error|warning|notice|info|debug
|
* @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 ) {
|
public static function get_level_severity( $level ) {
|
||||||
if ( array_key_exists( $level, self::$log_levels ) ) {
|
if ( array_key_exists( $level, self::$log_levels ) ) {
|
||||||
|
|
|
@ -1442,7 +1442,7 @@ function wc_safe_dump( $expression ) {
|
||||||
array( 'func' => 'serialize', 'args' => array( $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 ) {
|
foreach ( $alternatives as $alternative ) {
|
||||||
if ( function_exists( $alternative['func'] ) ) {
|
if ( function_exists( $alternative['func'] ) ) {
|
||||||
|
|
Loading…
Reference in New Issue