[wp-trac] [WordPress Trac] #37640: Add WPLANG to `.maintenance`
WordPress Trac
noreply at wordpress.org
Fri Aug 12 05:37:26 UTC 2016
#37640: Add WPLANG to `.maintenance`
-----------------------------+-----------------------------
Reporter: tmatsuur | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 4.5.3
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
Currently, maintenance display is English.
This will be WPLANG definition is deprecated in version 4.0 or later, I
think that it is due to the fact that now is not the translation
information of each language is loaded at the time of the maintenance
display.
I think the problem can be solved by adding a WPLANG defined in
`.maintenance` that is created at the time of maintenance.
*Currently(/wp-admin/includes/update-core.php : line936)
{{{
$maintenance_string = '<?php $upgrading = ' . time() . '; ?>';
}}}
*Change
{{{
$language = get_option( 'WPLANG' );
if ( $language ) {
$maintenance_string = '<?php $upgrading = ' . time() . '; if (
!defined( \'WPLANG\' ) ) define( \'WPLANG\', \''. $language .'\' ); ?>';
} else {
$maintenance_string = '<?php $upgrading = ' . time() . '; ?>';
}
}}}
Please consider this matter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37640>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list