Make WordPress Core

Changeset 31411


Ignore:
Timestamp:
02/11/2015 03:58:22 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Use require_once() to prevent a fatal error if _wp_admin_bar_init() is called twice.

props danielbachhuber.
fixes #31287.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/admin-bar.php

    r31176 r31411  
    2323
    2424    /* Load the admin bar class code ready for instantiation */
    25     require( ABSPATH . WPINC . '/class-wp-admin-bar.php' );
     25    require_once( ABSPATH . WPINC . '/class-wp-admin-bar.php' );
    2626
    2727    /* Instantiate the admin bar */
Note: See TracChangeset for help on using the changeset viewer.