Make WordPress Core


Ignore:
Timestamp:
07/09/2023 08:15:03 PM (3 years ago)
Author:
audrasjb
Message:

Docs: Replace multiple single line comments with multi-line comments.

This changeset updates various comments as per WordPress PHP Inline Documentation Standards.
See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#5-inline-comments.

Follow-up to [56174], [56175], [56176].

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-admin-bar.php

    r55580 r56177  
    314314                }
    315315
    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                 */
    318320                $this->remove_node( 'root' );
    319321                $this->add_node(
     
    363365                                $default    = $this->_get_node( $default_id );
    364366
    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                                 */
    367371                                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                                         */
    370376                                        $this->_set_node(
    371377                                                array(
     
    386392                                $parent = $default;
    387393
    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                                 */
    390398                        } elseif ( 'group' === $parent->type && 'group' === $node->type ) {
    391399                                $container_id = $parent->id . '-container';
     
    394402                                // We need to create a container for this group, life is sad.
    395403                                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                                         */
    398408                                        $this->_set_node(
    399409                                                array(
     
    448458         */
    449459        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                 */
    452464                $class = 'nojq nojs';
    453465                if ( wp_is_mobile() ) {
Note: See TracChangeset for help on using the changeset viewer.