Load the new admin and network admin mo files, if present. see #19852
git-svn-id: http://svn.automattic.com/wordpress/trunk@19772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -6,6 +6,13 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
if ( ! defined('WP_ADMIN') ) {
|
||||
// This file is being included from a file other than wp-admin/admin.php, so
|
||||
// some setup was skipped. Make sure the admin message catalog is loaded since
|
||||
// load_default_textdomain() will not have done so in this context.
|
||||
load_textdomain( 'default', WP_LANG_DIR . '/admin-' . get_locale() . '.mo' );
|
||||
}
|
||||
|
||||
/** WordPress Bookmark Administration API */
|
||||
require_once(ABSPATH . 'wp-admin/includes/bookmark.php');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user