Make WordPress Core


Ignore:
Timestamp:
07/09/2023 07:50:52 PM (17 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.

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r56031 r56174  
    299299    $return = array();
    300300
    301     // Check the type of request.
    302     // Current allowed values are `add` and `search`.
     301    /*
     302     * Check the type of request.
     303     * Current allowed values are `add` and `search`.
     304     */
    303305    if ( isset( $_REQUEST['autocomplete_type'] ) && 'search' === $_REQUEST['autocomplete_type'] ) {
    304306        $type = $_REQUEST['autocomplete_type'];
     
    307309    }
    308310
    309     // Check the desired field for value.
    310     // Current allowed values are `user_email` and `user_login`.
     311    /*
     312     * Check the desired field for value.
     313     * Current allowed values are `user_email` and `user_login`.
     314     */
    311315    if ( isset( $_REQUEST['autocomplete_field'] ) && 'user_email' === $_REQUEST['autocomplete_field'] ) {
    312316        $field = $_REQUEST['autocomplete_field'];
     
    15211525    require_once ABSPATH . 'wp-admin/includes/nav-menu.php';
    15221526
    1523     // For performance reasons, we omit some object properties from the checklist.
    1524     // The following is a hacky way to restore them when adding non-custom items.
     1527    /*
     1528     * For performance reasons, we omit some object properties from the checklist.
     1529     * The following is a hacky way to restore them when adding non-custom items.
     1530     */
    15251531    $menu_items_data = array();
    15261532
     
    25132519    }
    25142520
    2515     // Set a custom header with the attachment_id.
    2516     // Used by the browser/client to resume creating image sub-sizes after a PHP fatal error.
     2521    /*
     2522     * Set a custom header with the attachment_id.
     2523     * Used by the browser/client to resume creating image sub-sizes after a PHP fatal error.
     2524     */
    25172525    if ( ! headers_sent() ) {
    25182526        header( 'X-WP-Upload-Attachment-ID: ' . $attachment_id );
    25192527    }
    25202528
    2521     // This can still be pretty slow and cause timeout or out of memory errors.
    2522     // The js that handles the response would need to also handle HTTP 500 errors.
     2529    /*
     2530     * This can still be pretty slow and cause timeout or out of memory errors.
     2531     * The js that handles the response would need to also handle HTTP 500 errors.
     2532     */
    25232533    wp_update_image_subsizes( $attachment_id );
    25242534
     
    37703780
    37713781    if ( is_ssl() && str_starts_with( $url, 'http://' ) ) {
    3772         // Admin is ssl and the user pasted non-ssl URL.
    3773         // Check if the provider supports ssl embeds and use that for the preview.
     3782        /*
     3783         * Admin is ssl and the user pasted non-ssl URL.
     3784         * Check if the provider supports ssl embeds and use that for the preview.
     3785         */
    37743786        $ssl_shortcode = preg_replace( '%^(\\[embed[^\\]]*\\])http://%i', '$1https://', $shortcode );
    37753787        $parsed        = $wp_embed->run_shortcode( $ssl_shortcode );
Note: See TracChangeset for help on using the changeset viewer.