WordPress.org

Make WordPress Core

Changeset 39456


Ignore:
Timestamp:
12/03/2016 04:15:33 AM (20 months ago)
Author:
pento
Message:

Load: No-op locale.php

After re-adding locale.php in [39455], remove the content of the file so that it can't cause errors in the event of something loading it early in the WordPress load process.

See #39027.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/locale.php

    r39455 r39456  
    99
    1010_deprecated_file( basename( __FILE__ ), '4.7.0' );
    11 
    12 /** WP_Locale class */
    13 require_once ABSPATH . WPINC . '/class-wp-locale.php';
    14 
    15 /**
    16  * Checks if current locale is RTL.
    17  *
    18  * @since 3.0.0
    19  *
    20  * @global WP_Locale $wp_locale
    21  *
    22  * @return bool Whether locale is RTL.
    23  */
    24 function is_rtl() {
    25     global $wp_locale;
    26     return $wp_locale->is_rtl();
    27 }
Note: See TracChangeset for help on using the changeset viewer.