Changeset 30207 for trunk/src/wp-includes/functions.php
- Timestamp:
- 11/03/2014 03:54:42 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r30191 r30207 4741 4741 4742 4742 /** 4743 * Alternative to filter_var( $var, FILTER_VALIDATE_BOOLEAN ). 4743 * Filter/validate a variable as a boolean. 4744 * 4745 * Alternative to `filter_var( $var, FILTER_VALIDATE_BOOLEAN )`. 4744 4746 * 4745 4747 * @since 4.0.0 … … 4753 4755 } 4754 4756 4755 if ( 'false' === $var) {4757 if ( is_string( $var ) && 'false' === strtolower( $var ) ) { 4756 4758 return false; 4757 4759 }
Note: See TracChangeset
for help on using the changeset viewer.