wp/wp-admin/includes/admin.php
changeset 21 48c4eec2b7e6
parent 16 a86126ab1dd4
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
    11 	/*
    11 	/*
    12 	 * This file is being included from a file other than wp-admin/admin.php, so
    12 	 * This file is being included from a file other than wp-admin/admin.php, so
    13 	 * some setup was skipped. Make sure the admin message catalog is loaded since
    13 	 * some setup was skipped. Make sure the admin message catalog is loaded since
    14 	 * load_default_textdomain() will not have done so in this context.
    14 	 * load_default_textdomain() will not have done so in this context.
    15 	 */
    15 	 */
    16 	load_textdomain( 'default', WP_LANG_DIR . '/admin-' . get_locale() . '.mo' );
    16 	$admin_locale = get_locale();
       
    17 	load_textdomain( 'default', WP_LANG_DIR . '/admin-' . $admin_locale . '.mo', $admin_locale );
       
    18 	unset( $admin_locale );
    17 }
    19 }
    18 
    20 
    19 /** WordPress Administration Hooks */
    21 /** WordPress Administration Hooks */
    20 require_once ABSPATH . 'wp-admin/includes/admin-filters.php';
    22 require_once ABSPATH . 'wp-admin/includes/admin-filters.php';
    21 
    23