Changeset 45590 for trunk/src/wp-includes/class-wp-admin-bar.php
- Timestamp:
- 07/02/2019 11:41:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-admin-bar.php
r44973 r45590 145 145 146 146 // If the node already exists, keep any data that isn't provided. 147 if ( $maybe_defaults = $this->get_node( $args['id'] ) ) { 147 $maybe_defaults = $this->get_node( $args['id'] ); 148 if ( $maybe_defaults ) { 148 149 $defaults = get_object_vars( $maybe_defaults ); 149 150 } … … 184 185 */ 185 186 final public function get_node( $id ) { 186 if ( $node = $this->_get_node( $id ) ) { 187 $node = $this->_get_node( $id ); 188 if ( $node ) { 187 189 return clone $node; 188 190 } … … 211 213 */ 212 214 final public function get_nodes() { 213 if ( ! $nodes = $this->_get_nodes() ) { 215 $nodes = $this->_get_nodes(); 216 if ( ! $nodes ) { 214 217 return; 215 218 } … … 313 316 314 317 // Fetch the parent node. If it isn't registered, ignore the node. 315 if ( ! $parent = $this->_get_node( $node->parent ) ) { 318 $parent = $this->_get_node( $node->parent ); 319 if ( ! $parent ) { 316 320 continue; 317 321 }
Note: See TracChangeset
for help on using the changeset viewer.