Changeset 1540
- Timestamp:
- 05/04/2015 08:19:43 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
r1539 r1540 829 829 /** 830 830 * Convert a string representation of a boolean to an actual boolean 831 * 832 * @param string|bool 833 * 834 * @return bool 831 835 */ 832 836 function str_to_bool( $value ) { 833 $value = strtolower( trim( $value ) ); 834 835 if ( true === $value || in_array( $value, array( 'yes', 'true', '1' ) ) ) { 837 if ( true === $value ) { 838 return true; 839 } 840 841 if ( in_array( strtolower( trim( $value ) ), array( 'yes', 'true', '1' ) ) ) { 836 842 return true; 837 843 }
Note: See TracChangeset
for help on using the changeset viewer.