Changeset 38399 for trunk/src/wp-includes/admin-bar.php
- Timestamp:
- 08/27/2016 09:15:01 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/admin-bar.php
r38340 r38399 24 24 global $wp_admin_bar; 25 25 26 if ( ! is_admin_bar_showing() ) 26 if ( ! is_admin_bar_showing() ) { 27 27 return false; 28 29 /* Load the admin bar class code ready for instantiation */ 30 require_once( ABSPATH . WPINC . '/class-wp-admin-bar.php' ); 28 } 31 29 32 30 /* Instantiate the admin bar */ … … 40 38 */ 41 39 $admin_bar_class = apply_filters( 'wp_admin_bar_class', 'WP_Admin_Bar' ); 42 if ( class_exists( $admin_bar_class ) ) 40 if ( class_exists( $admin_bar_class ) ) { 43 41 $wp_admin_bar = new $admin_bar_class; 44 else42 } else { 45 43 return false; 46 44 } 47 45 $wp_admin_bar->initialize(); 48 46 $wp_admin_bar->add_menus(); … … 295 293 296 294 if ( is_network_admin() ) { 297 /* translators: %s: site name */ 295 /* translators: %s: site name */ 298 296 $blogname = sprintf( __( 'Network Admin: %s' ), esc_html( get_current_site()->site_name ) ); 299 297 } elseif ( is_user_admin() ) { 300 /* translators: %s: site name */ 298 /* translators: %s: site name */ 301 299 $blogname = sprintf( __( 'User Dashboard: %s' ), esc_html( get_current_site()->site_name ) ); 302 300 }
Note: See TracChangeset
for help on using the changeset viewer.