PHP4 compatibility for files loaded before we bail. fixes #25760.
Merges [25986] to the 3.7 branch. Built from https://develop.svn.wordpress.org/branches/3.7@25987 git-svn-id: http://core.svn.wordpress.org/branches/3.7@25923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2861721640
commit
f2e591e4c2
|
@ -38,7 +38,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
<div class="changelog point-releases">
|
<div class="changelog point-releases">
|
||||||
<h3><?php echo _n( 'Maintenance Release', 'Maintenance Releases', 1 ); ?></h3>
|
<h3><?php echo _n( 'Maintenance Release', 'Maintenance Releases', 1 ); ?></h3>
|
||||||
<p><?php printf( _n( '<strong>Version %1$s</strong> addressed %2$s bug.',
|
<p><?php printf( _n( '<strong>Version %1$s</strong> addressed %2$s bug.',
|
||||||
'<strong>Version %1$s</strong> addressed %2$s bugs.', 10 ), '3.7.1', number_format_i18n( 10 ) ); ?>
|
'<strong>Version %1$s</strong> addressed %2$s bugs.', 11 ), '3.7.1', number_format_i18n( 11 ) ); ?>
|
||||||
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_3.7.1' ); ?>
|
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_3.7.1' ); ?>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -42,10 +42,10 @@ function wp_initial_constants() {
|
||||||
if ( function_exists( 'memory_get_usage' ) ) {
|
if ( function_exists( 'memory_get_usage' ) ) {
|
||||||
$current_limit = @ini_get( 'memory_limit' );
|
$current_limit = @ini_get( 'memory_limit' );
|
||||||
$current_limit_int = intval( $current_limit );
|
$current_limit_int = intval( $current_limit );
|
||||||
if ( false !== stripos( $current_limit, 'G' ) )
|
if ( false !== strpos( $current_limit, 'G' ) )
|
||||||
$current_limit_int *= 1024;
|
$current_limit_int *= 1024;
|
||||||
$wp_limit_int = intval( WP_MEMORY_LIMIT );
|
$wp_limit_int = intval( WP_MEMORY_LIMIT );
|
||||||
if ( false !== stripos( WP_MEMORY_LIMIT, 'G' ) )
|
if ( false !== strpos( WP_MEMORY_LIMIT, 'G' ) )
|
||||||
$wp_limit_int *= 1024;
|
$wp_limit_int *= 1024;
|
||||||
|
|
||||||
if ( -1 != $current_limit && ( -1 == WP_MEMORY_LIMIT || $current_limit_int < $wp_limit_int ) )
|
if ( -1 != $current_limit && ( -1 == WP_MEMORY_LIMIT || $current_limit_int < $wp_limit_int ) )
|
||||||
|
|
|
@ -797,9 +797,9 @@ function wp_get_pomo_file_data( $po_file ) {
|
||||||
'Project-Id-Version' => '"Project-Id-Version',
|
'Project-Id-Version' => '"Project-Id-Version',
|
||||||
'X-Generator' => '"X-Generator',
|
'X-Generator' => '"X-Generator',
|
||||||
) );
|
) );
|
||||||
foreach ( $headers as &$header ) {
|
foreach ( $headers as $header => $value ) {
|
||||||
// Remove possible contextual '\n' and closing double quote.
|
// Remove possible contextual '\n' and closing double quote.
|
||||||
$header = preg_replace( '~(\\\n)?"$~', '', $header );
|
$headers[ $header ] = preg_replace( '~(\\\n)?"$~', '', $value );
|
||||||
}
|
}
|
||||||
return $headers;
|
return $headers;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue