WordPress.org

Make WordPress Core

Changeset 19638


Ignore:
Timestamp:
12/30/11 23:04:28 (3 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.