Make WordPress Core


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

    r56031 r56174  
    423423
    424424    if ( ! is_wp_error( $attachment_id ) ) {
    425         // Set a custom header with the attachment_id.
    426         // Used by the browser/client to resume creating image sub-sizes after a PHP fatal error.
     425        /*
     426         * Set a custom header with the attachment_id.
     427         * Used by the browser/client to resume creating image sub-sizes after a PHP fatal error.
     428         */
    427429        if ( ! headers_sent() ) {
    428430            header( 'X-WP-Upload-Attachment-ID: ' . $attachment_id );
    429431        }
    430432
    431         // The image sub-sizes are created during wp_generate_attachment_metadata().
    432         // This is generally slow and may cause timeouts or out of memory errors.
     433        /*
     434         * The image sub-sizes are created during wp_generate_attachment_metadata().
     435         * This is generally slow and may cause timeouts or out of memory errors.
     436         */
    433437        wp_update_attachment_metadata( $attachment_id, wp_generate_attachment_metadata( $attachment_id, $file ) );
    434438    }
Note: See TracChangeset for help on using the changeset viewer.