Make WordPress Core


Ignore:
Timestamp:
08/26/2016 10:19:26 AM (8 years ago)
Author:
wonderboymusic
Message:

i18n: move is_rtl() to l10n.php (which loads way earlier). Load WP_Locale file in wp-settings.php. Retire wp-includes/locale.php - it only loaded the class and the one function, is_rtl(). If someone loaded this file for fun somewhere else, it would be a fatal error.

See #37827.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r38362 r38364  
    214214require( ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php' );
    215215require( ABSPATH . WPINC . '/rest-api/class-wp-rest-request.php' );
     216require( ABSPATH . WPINC . '/class-wp-locale.php' );
    216217
    217218$GLOBALS['wp_embed'] = new WP_Embed();
     
    374375unset( $locale_file );
    375376
    376 // Pull in locale data after loading text domain.
    377 require_once( ABSPATH . WPINC . '/locale.php' );
    378 
    379377/**
    380378 * WordPress Locale object for loading locale domain date and various strings.
Note: See TracChangeset for help on using the changeset viewer.