From 6cb67e88179a2fcf4f41c8ef7253b4457be5659c Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 10 Jul 2012 20:32:48 +0000 Subject: [PATCH] Tabs, not spaces for intendation. Add a docblock to the file/class. git-svn-id: http://core.svn.wordpress.org/trunk@21257 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-admin-bar.php | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/wp-includes/class-wp-admin-bar.php b/wp-includes/class-wp-admin-bar.php index 7ce2462296..53cc128319 100644 --- a/wp-includes/class-wp-admin-bar.php +++ b/wp-includes/class-wp-admin-bar.php @@ -1,4 +1,12 @@ _get_nodes() ) - return; + if ( ! $nodes = $this->_get_nodes() ) + return; - foreach ( $nodes as &$node ) { - $node = clone $node; - } - return $nodes; + foreach ( $nodes as &$node ) { + $node = clone $node; + } + return $nodes; } final protected function _get_nodes() {