WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/27/2012 10:19:56 PM (9 years ago)
Author:
ryan
Message:

Load the new admin and network admin mo files, if present. see #19852

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/admin.php

    r19712 r19772  
    66 * @subpackage Administration
    77 */
     8
     9if ( ! defined('WP_ADMIN') ) {
     10    // This file is being included from a file other than wp-admin/admin.php, so
     11    // some setup was skipped. Make sure the admin message catalog is loaded since
     12    // load_default_textdomain() will not have done so in this context.
     13    load_textdomain( 'default', WP_LANG_DIR . '/admin-' . get_locale() . '.mo' );
     14}
    815
    916/** WordPress Bookmark Administration API */
Note: See TracChangeset for help on using the changeset viewer.