Permalink
Browse files

wfx_debug() strict comparison to zero

More strict detection of 0 for debugging output.
  • Loading branch information...
Jonnyauk committed Sep 20, 2017
1 parent 8237199 commit a070d7687cd901192912f583e07617f8a87a0fe0
Showing with 1 addition and 1 deletion.
  1. +1 −1 wf-includes/wf-helper-functions.php
@@ -959,7 +959,7 @@ function wf_debug( $input='', $label='', $admin_only=true, $role=false, $id=fals
$o .= ( $input === true ) ? 'true' : 'false';
$o .= '</pre>';
} elseif ( is_numeric( $input ) && $input == 0 ) {
} elseif ( is_numeric( $input ) && $input === 0 ) {
$o .= '<pre>';
$o .= '0 ' . esc_html__('(zero)', 'wonderflux');

0 comments on commit a070d76

Please sign in to comment.