Make WordPress Core


Ignore:
Timestamp:
07/10/2023 11:17:05 PM (15 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], [56192], [56193], [56194].

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

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

    r56051 r56195  
    102102                '/%s/(?P<id>%s%s)',
    103103                $this->rest_base,
    104                 // Matches theme's directory: `/themes/<subdirectory>/<theme>/` or `/themes/<theme>/`.
    105                 // Excludes invalid directory name characters: `/:<>*?"|`.
     104                /*
     105                 * Matches theme's directory: `/themes/<subdirectory>/<theme>/` or `/themes/<theme>/`.
     106                 * Excludes invalid directory name characters: `/:<>*?"|`.
     107                 */
    106108                '([^\/:<>\*\?"\|]+(?:\/[^\/:<>\*\?"\|]+)?)',
    107109                // Matches the template name.
     
    178180     */
    179181    protected function permissions_check( $request ) {
    180         // Verify if the current user has edit_theme_options capability.
    181         // This capability is required to edit/view/delete templates.
     182        /*
     183         * Verify if the current user has edit_theme_options capability.
     184         * This capability is required to edit/view/delete templates.
     185         */
    182186        if ( ! current_user_can( 'edit_theme_options' ) ) {
    183187            return new WP_Error(
     
    503507            }
    504508
    505             // (Note that internally this falls through to `wp_delete_post()`
    506             // if the Trash is disabled.)
     509            /*
     510             * (Note that internally this falls through to `wp_delete_post()`
     511             * if the Trash is disabled.)
     512             */
    507513            $result           = wp_trash_post( $id );
    508514            $template->status = 'trash';
Note: See TracChangeset for help on using the changeset viewer.