Load: Re-add `locale.php`.

`locale.php` is occasionally included directly by custom external code, so should continue to be available. This behaviour is deprecated.

Partial revert of [38364].
See #37827, #39027.


Built from https://develop.svn.wordpress.org/trunk@39455


git-svn-id: http://core.svn.wordpress.org/trunk@39395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2016-12-03 04:07:40 +00:00
parent 3487c1bda8
commit 623ba7e8c9
3 changed files with 29 additions and 2 deletions

View File

@ -708,7 +708,7 @@ $_old_files = array(
// 4.7
// Don't delete, yet: 'wp-admin/includes/class-wp-upgrader-skins.php',
// Don't delete, yet: 'wp-includes/class-feed.php',
'wp-includes/locale.php',
// Don't delete, yet: 'wp-includes/locale.php',
// Don't delete, yet: 'wp-includes/session.php',
'wp-includes/customize/class-wp-customize-themes-panel.php', // Removed in beta; when the feature comes back remember to remove it from this array. See #37661.
);

27
wp-includes/locale.php Normal file
View File

@ -0,0 +1,27 @@
<?php
/**
* Locale API
*
* @package WordPress
* @subpackage i18n
* @since 1.2.0
*/
_deprecated_file( basename( __FILE__ ), '4.7.0' );
/** WP_Locale class */
require_once ABSPATH . WPINC . '/class-wp-locale.php';
/**
* Checks if current locale is RTL.
*
* @since 3.0.0
*
* @global WP_Locale $wp_locale
*
* @return bool Whether locale is RTL.
*/
function is_rtl() {
global $wp_locale;
return $wp_locale->is_rtl();
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-39453';
$wp_version = '4.8-alpha-39455';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.