Changes from branches/2.7/wp-includes/compat.php at r10391 to trunk/wp-includes/compat.php at r7140
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/compat.php
r10391 r7140 97 97 } 98 98 99 if ( !function_exists( 'htmlspecialchars_decode' ) ) {100 // Added in PHP 5.1.0101 // Error checks from PEAR::PHP_Compat102 function htmlspecialchars_decode( $str, $quote_style = ENT_COMPAT )103 {104 if ( !is_scalar( $string ) ) {105 trigger_error( 'htmlspecialchars_decode() expects parameter 1 to be string, ' . gettype( $string ) . ' given', E_USER_WARNING );106 return;107 }108 109 if ( !is_int( $quote_style ) && $quote_style !== null ) {110 trigger_error( 'htmlspecialchars_decode() expects parameter 2 to be integer, ' . gettype( $quote_style ) . ' given', E_USER_WARNING );111 return;112 }113 114 return wp_specialchars_decode( $str, $quote_style );115 }116 }117 118 99 ?>
Note: See TracChangeset
for help on using the changeset viewer.