Make WordPress Core


Ignore:
Timestamp:
07/09/2023 09:46:24 PM (12 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].

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r56167 r56180  
    138138            'metaWeblog.newMediaObject'        => 'this:mw_newMediaObject',
    139139
    140             // MetaWeblog API aliases for Blogger API.
    141             // See http://www.xmlrpc.com/stories/storyReader$2460
     140            /*
     141             * MetaWeblog API aliases for Blogger API.
     142             * See http://www.xmlrpc.com/stories/storyReader$2460
     143             */
    142144            'metaWeblog.deletePost'            => 'this:blogger_deletePost',
    143145            'metaWeblog.getUsersBlogs'         => 'this:blogger_getUsersBlogs',
     
    31223124        do_action( 'xmlrpc_call', 'wp.deletePage', $args, $this );
    31233125
    3124         // Get the current page based on the 'page_id' and
    3125         // make sure it is a page and not a post.
     3126        /*
     3127         * Get the current page based on the 'page_id' and
     3128         * make sure it is a page and not a post.
     3129         */
    31263130        $actual_page = get_post( $page_id, ARRAY_A );
    31273131        if ( ! $actual_page || ( 'page' !== $actual_page['post_type'] ) ) {
     
    34123416        }
    34133417
    3414         // If no slug was provided, make it empty
    3415         // so that WordPress will generate one.
     3418        /*
     3419         * If no slug was provided, make it empty
     3420         * so that WordPress will generate one.
     3421         */
    34163422        if ( empty( $category['slug'] ) ) {
    34173423            $category['slug'] = '';
    34183424        }
    34193425
    3420         // If no parent_id was provided, make it empty
    3421         // so that it will be a top-level page (no parent).
     3426        /*
     3427         * If no parent_id was provided, make it empty
     3428         * so that it will be a top-level page (no parent).
     3429         */
    34223430        if ( ! isset( $category['parent_id'] ) ) {
    34233431            $category['parent_id'] = '';
     
    56195627        $this->attach_uploads( $post_id, $post_content );
    56205628
    5621         // Handle post formats if assigned, value is validated earlier
    5622         // in this function.
     5629        /*
     5630         * Handle post formats if assigned, value is validated earlier
     5631         * in this function.
     5632         */
    56235633        if ( isset( $content_struct['wp_post_format'] ) ) {
    56245634            set_post_format( $post_id, $content_struct['wp_post_format'] );
     
    69997009                }
    70007010
    7001                 // We're going to use this fake tag to mark the context in a bit.
    7002                 // The marker is needed in case the link text appears more than once in the paragraph.
     7011                /*
     7012                 * We're going to use this fake tag to mark the context in a bit.
     7013                 * The marker is needed in case the link text appears more than once in the paragraph.
     7014                 */
    70037015                $excerpt = preg_replace( '|\</?wpcontext\>|', '', $para );
    70047016
Note: See TracChangeset for help on using the changeset viewer.