mirror of
https://github.com/WordPress/WordPress.git
synced 2025-04-12 06:57:13 +02: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, see #19642 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fd53358005
commit
aa3cf9d286
@ -196,7 +196,8 @@ class WP_Admin_Bar {
|
||||
|
||||
public function render() {
|
||||
$root = $this->_bind();
|
||||
$this->_render( $root );
|
||||
if ( $root )
|
||||
$this->_render( $root );
|
||||
}
|
||||
|
||||
final protected function _bind() {
|
||||
|
Loading…
Reference in New Issue
Block a user