mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 07:05:37 +01:00
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, fixes #19642 for 3.3
git-svn-id: http://svn.automattic.com/wordpress/branches/3.3@19644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
61aef00dc4
commit
c15548e05e
@ -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