From c15548e05e7f61ce42accca979616f0443cf00f1 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 2 Jan 2012 21:37:16 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-admin-bar.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-admin-bar.php b/wp-includes/class-wp-admin-bar.php index 8ee6d1cf20..1b8f8b3391 100644 --- a/wp-includes/class-wp-admin-bar.php +++ b/wp-includes/class-wp-admin-bar.php @@ -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() {