Changeset 56177 for trunk/src/wp-includes/class-wp-admin-bar.php
- Timestamp:
- 07/09/2023 08:15:03 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-admin-bar.php
r55580 r56177 314 314 } 315 315 316 // Add the root node. 317 // Clear it first, just in case. Don't mess with The Root. 316 /* 317 * Add the root node. 318 * Clear it first, just in case. Don't mess with The Root. 319 */ 318 320 $this->remove_node( 'root' ); 319 321 $this->add_node( … … 363 365 $default = $this->_get_node( $default_id ); 364 366 365 // The default group is added here to allow groups that are 366 // added before standard menu items to render first. 367 /* 368 * The default group is added here to allow groups that are 369 * added before standard menu items to render first. 370 */ 367 371 if ( ! $default ) { 368 // Use _set_node because add_node can be overloaded. 369 // Make sure to specify default settings for all properties. 372 /* 373 * Use _set_node because add_node can be overloaded. 374 * Make sure to specify default settings for all properties. 375 */ 370 376 $this->_set_node( 371 377 array( … … 386 392 $parent = $default; 387 393 388 // Groups in groups aren't allowed. Add a special 'container' node. 389 // The container will invisibly wrap both groups. 394 /* 395 * Groups in groups aren't allowed. Add a special 'container' node. 396 * The container will invisibly wrap both groups. 397 */ 390 398 } elseif ( 'group' === $parent->type && 'group' === $node->type ) { 391 399 $container_id = $parent->id . '-container'; … … 394 402 // We need to create a container for this group, life is sad. 395 403 if ( ! $container ) { 396 // Use _set_node because add_node can be overloaded. 397 // Make sure to specify default settings for all properties. 404 /* 405 * Use _set_node because add_node can be overloaded. 406 * Make sure to specify default settings for all properties. 407 */ 398 408 $this->_set_node( 399 409 array( … … 448 458 */ 449 459 final protected function _render( $root ) { 450 // Add browser classes. 451 // We have to do this here since admin bar shows on the front end. 460 /* 461 * Add browser classes. 462 * We have to do this here since admin bar shows on the front end. 463 */ 452 464 $class = 'nojq nojs'; 453 465 if ( wp_is_mobile() ) {
Note: See TracChangeset
for help on using the changeset viewer.