Kill the admin-bar directory. see #14772.
git-svn-id: https://develop.svn.wordpress.org/trunk@16098 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0180091a56
commit
ccee731f94
@ -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
Block a user