Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/compat.php

    r10391 r7140  
    9797}
    9898
    99 if ( !function_exists( 'htmlspecialchars_decode' ) ) {
    100         // Added in PHP 5.1.0
    101         // Error checks from PEAR::PHP_Compat
    102         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 
    11899?>
Note: See TracChangeset for help on using the changeset viewer.