Make WordPress Core

Changeset 56175


Ignore:
Timestamp:
07/09/2023 07:54:42 PM (9 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].

Props costdev, audrasjb.
See #58459.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/menu-header.php

    r55988 r56175  
    227227                        $aria_attributes .= ' aria-current="page"';
    228228                    }
    229                     // If plugin_page is set the parent must either match the current page or not physically exist.
    230                     // This allows plugin pages with the same hook to exist under different parents.
     229                    /*
     230                     * If plugin_page is set the parent must either match the current page or not physically exist.
     231                     * This allows plugin pages with the same hook to exist under different parents.
     232                     */
    231233                } elseif (
    232234                    ( ! isset( $plugin_page ) && $self === $sub_item[2] )
  • trunk/src/wp-admin/update-core.php

    r56171 r56175  
    851851    }
    852852
    853     // Allow relaxed file ownership writes for User-initiated upgrades when the API specifies
    854     // that it's safe to do so. This only happens when there are no new files to create.
     853    /*
     854     * Allow relaxed file ownership writes for User-initiated upgrades when the API specifies
     855     * that it's safe to do so. This only happens when there are no new files to create.
     856     */
    855857    $allow_relaxed_file_ownership = ! $reinstall && isset( $update->new_files ) && ! $update->new_files;
    856858
  • trunk/src/wp-admin/user-edit.php

    r56150 r56175  
    922922        var languageSelect = $( '#locale' );
    923923        $( 'form' ).on( 'submit', function() {
    924             // Don't show a spinner for English and installed languages,
    925             // as there is nothing to download.
     924            /*
     925             * Don't show a spinner for English and installed languages,
     926             * as there is nothing to download.
     927             */
    926928            if ( ! languageSelect.find( 'option:selected' ).data( 'installed' ) ) {
    927929                $( '#submit', this ).after( '<span class="spinner language-install-spinner is-active" />' );
Note: See TracChangeset for help on using the changeset viewer.