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:
Sergey Biryukov 2015-02-11 15:58:22 +00:00
parent e2c7cd4677
commit 0fdfb101db
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ function _wp_admin_bar_init() {
return false; return false;
/* Load the admin bar class code ready for instantiation */ /* 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 */ /* Instantiate the admin bar */