Kill the admin-bar directory. see #14772.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6c03909488
commit
244216d617
|
@ -18,7 +18,7 @@ function wp_admin_bar_init() {
|
|||
return false;
|
||||
|
||||
/* Load the admin bar class code ready for instantiation */
|
||||
require( ABSPATH . WPINC . '/admin-bar/admin-bar-class.php' );
|
||||
require( ABSPATH . WPINC . '/class-wp-admin-bar.php' );
|
||||
|
||||
/* Instantiate the admin bar */
|
||||
$admin_bar_class = apply_filters( 'wp_admin_bar_class', 'WP_Admin_Bar' );
|
||||
|
|
|
@ -9,7 +9,7 @@ class WP_Admin_Bar {
|
|||
function initialize() {
|
||||
/* Only load super admin menu code if the logged in user is a super admin */
|
||||
if ( is_super_admin() ) {
|
||||
require( ABSPATH . WPINC . '/admin-bar/admin-bar-superadmin.php' );
|
||||
require( ABSPATH . WPINC . '/ms-admin-bar.php' );
|
||||
}
|
||||
|
||||
/* Set the protocol used throughout this code */
|
Loading…
Reference in New Issue