Make WordPress Core


Ignore:
Timestamp:
07/10/2023 10:46:22 PM (11 months 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], [56177], [56178], [56179], [56180], [56191].

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/nav-menu.php

    r55962 r56192  
    548548    }
    549549
    550     // Associate the menu item with the menu term.
    551     // Only set the menu term if it isn't set to avoid unnecessary wp_get_object_terms().
     550    /*
     551     * Associate the menu item with the menu term.
     552     * Only set the menu term if it isn't set to avoid unnecessary wp_get_object_terms().
     553     */
    552554    if ( $menu_id && ( ! $update || ! is_object_in_term( $menu_item_db_id, 'nav_menu', (int) $menu->term_id ) ) ) {
    553555        $update_terms = wp_set_object_terms( $menu_item_db_id, array( $menu->term_id ), 'nav_menu' );
Note: See TracChangeset for help on using the changeset viewer.