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.
git-svn-id: https://develop.svn.wordpress.org/trunk@19638 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
68ac3d9c93
commit
0e4935d078
@ -196,6 +196,7 @@ class WP_Admin_Bar {
|
||||
|
||||
public function render() {
|
||||
$root = $this->_bind();
|
||||
if ( $root )
|
||||
$this->_render( $root );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user