Ticket #25760: 25760.2.diff
| File 25760.2.diff, 1.4 KB (added by , 12 years ago) |
|---|
-
src/wp-includes/default-constants.php
42 42 if ( function_exists( 'memory_get_usage' ) ) { 43 43 $current_limit = @ini_get( 'memory_limit' ); 44 44 $current_limit_int = intval( $current_limit ); 45 if ( false !== str ipos( $current_limit, 'G' ) )45 if ( false !== strpos( $current_limit, 'G' ) ) 46 46 $current_limit_int *= 1024; 47 47 $wp_limit_int = intval( WP_MEMORY_LIMIT ); 48 if ( false !== str ipos( WP_MEMORY_LIMIT, 'G' ) )48 if ( false !== strpos( WP_MEMORY_LIMIT, 'G' ) ) 49 49 $wp_limit_int *= 1024; 50 50 51 51 if ( -1 != $current_limit && ( -1 == WP_MEMORY_LIMIT || $current_limit_int < $wp_limit_int ) ) -
src/wp-includes/l10n.php
797 797 'Project-Id-Version' => '"Project-Id-Version', 798 798 'X-Generator' => '"X-Generator', 799 799 ) ); 800 foreach ( $headers as &$header) {800 foreach ( $headers as $header => $value ) { 801 801 // Remove possible contextual '\n' and closing double quote. 802 $header = preg_replace( '~(\\\n)?"$~', '', $header);802 $headers[ $header ] = preg_replace( '~(\\\n)?"$~', '', $value ); 803 803 } 804 804 return $headers; 805 805 }