wp/wp-admin/includes/admin.php
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 7 cf61fcea0001
equal deleted inserted replaced
4:346c88efed21 5:5e2f62d02dcd
     5  * @package WordPress
     5  * @package WordPress
     6  * @subpackage Administration
     6  * @subpackage Administration
     7  */
     7  */
     8 
     8 
     9 if ( ! defined('WP_ADMIN') ) {
     9 if ( ! defined('WP_ADMIN') ) {
    10 	// This file is being included from a file other than wp-admin/admin.php, so
    10 	/*
    11 	// some setup was skipped. Make sure the admin message catalog is loaded since
    11 	 * This file is being included from a file other than wp-admin/admin.php, so
    12 	// load_default_textdomain() will not have done so in this context.
    12 	 * some setup was skipped. Make sure the admin message catalog is loaded since
       
    13 	 * load_default_textdomain() will not have done so in this context.
       
    14 	 */
    13 	load_textdomain( 'default', WP_LANG_DIR . '/admin-' . get_locale() . '.mo' );
    15 	load_textdomain( 'default', WP_LANG_DIR . '/admin-' . get_locale() . '.mo' );
    14 }
    16 }
    15 
    17 
    16 /** WordPress Bookmark Administration API */
    18 /** WordPress Bookmark Administration API */
    17 require_once(ABSPATH . 'wp-admin/includes/bookmark.php');
    19 require_once(ABSPATH . 'wp-admin/includes/bookmark.php');