Use require_once()
to prevent a fatal error if _wp_admin_bar_init()
is called twice.
props danielbachhuber. fixes #31287. git-svn-id: https://develop.svn.wordpress.org/trunk@31411 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e2c7cd4677
commit
0fdfb101db
@ -22,7 +22,7 @@ function _wp_admin_bar_init() {
|
||||
return false;
|
||||
|
||||
/* Load the admin bar class code ready for instantiation */
|
||||
require( ABSPATH . WPINC . '/class-wp-admin-bar.php' );
|
||||
require_once( ABSPATH . WPINC . '/class-wp-admin-bar.php' );
|
||||
|
||||
/* Instantiate the admin bar */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user