Make WordPress Core


Ignore:
Timestamp:
07/10/2023 10:58:33 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], [56177], [56178], [56179], [56180], [56191], [56192].

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php

    r56105 r56193  
    6262                                '/%s/themes/(?P<stylesheet>%s)',
    6363                                $this->rest_base,
    64                                 // Matches theme's directory: `/themes/<subdirectory>/<theme>/` or `/themes/<theme>/`.
    65                                 // Excludes invalid directory name characters: `/:<>*?"|`.
     64                                /*
     65                                 * Matches theme's directory: `/themes/<subdirectory>/<theme>/` or `/themes/<theme>/`.
     66                                 * Excludes invalid directory name characters: `/:<>*?"|`.
     67                                 */
    6668                                '[^\/:<>\*\?"\|]+(?:\/[^\/:<>\*\?"\|]+)?'
    6769                        ),
    … …  
    566568         */
    567569        public function get_theme_item_permissions_check( $request ) {
    568                 // Verify if the current user has edit_theme_options capability.
    569                 // This capability is required to edit/view/delete templates.
     570                /*
     571                 * Verify if the current user has edit_theme_options capability.
     572                 * This capability is required to edit/view/delete templates.
     573                 */
    570574                if ( ! current_user_can( 'edit_theme_options' ) ) {
    571575                        return new WP_Error(
    … …  
    639643         */
    640644        public function get_theme_items_permissions_check( $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
    641                 // Verify if the current user has edit_theme_options capability.
    642                 // This capability is required to edit/view/delete templates.
     645                /*
     646                 * Verify if the current user has edit_theme_options capability.
     647                 * This capability is required to edit/view/delete templates.
     648                 */
    643649                if ( ! current_user_can( 'edit_theme_options' ) ) {
    644650                        return new WP_Error(
Note: See TracChangeset for help on using the changeset viewer.