Make WordPress Core


Ignore:
Timestamp:
12/30/2011 11:04:28 PM (13 years ago)
Author:
nacin
Message:

Make sure that _render() is only called with a valid root object. As in, render() can only be validly called once and must not fail on the second call. props SergeyBiryukov, see #19642 for trunk.

File:
1 edited

Legend:

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

    r19559 r19638  
    197197    public function render() {
    198198        $root = $this->_bind();
    199         $this->_render( $root );
     199        if ( $root )
     200            $this->_render( $root );
    200201    }
    201202
Note: See TracChangeset for help on using the changeset viewer.