WordPress.org

Make WordPress Core

Changeset 39459


Ignore:
Timestamp:
12/03/2016 04:29:44 AM (18 months ago)
Author:
pento
Message:

Load: Re-add class-wp-upgrader-skins.php, class-feed.php, locale.php, and session.php.

Several files were removed during 4.7 that can be loaded externally, so we need to keep them, though their use is now deprecated.

Merges [39449], [39450], [39453], [39455], and [39456] to the 4.7 branch.
Fixes #39027.

Location:
branches/4.7
Files:
2 edited
4 copied

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-admin/includes/update-core.php

    r39140 r39459  
    707707'wp-admin/includes/class-wp-automatic-upgrader.php', // Wrong file name, see #37628.
    708708// 4.7
    709 'wp-admin/includes/class-wp-upgrader-skins.php',
    710 'wp-includes/class-feed.php',
    711 'wp-includes/locale.php',
    712 'wp-includes/session.php',
     709// Don't delete, yet: 'wp-admin/includes/class-wp-upgrader-skins.php',
     710// Don't delete, yet: 'wp-includes/class-feed.php',
     711// Don't delete, yet: 'wp-includes/locale.php',
     712// Don't delete, yet: 'wp-includes/session.php',
    713713'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.
    714714);
  • branches/4.7/src/wp-includes/locale.php

    r39455 r39459  
    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.