Make WordPress Core


Ignore:
Timestamp:
07/09/2023 08:15:03 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].

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/canonical.php

    r55988 r56177  
    4747    }
    4848
    49     // If we're not in wp-admin and the post has been published and preview nonce
    50     // is non-existent or invalid then no need for preview in query.
     49    /*
     50     * If we're not in wp-admin and the post has been published and preview nonce
     51     * is non-existent or invalid then no need for preview in query.
     52     */
    5153    if ( is_preview() && get_query_var( 'p' ) && 'publish' === get_post_status( get_query_var( 'p' ) ) ) {
    5254        if ( ! isset( $_GET['preview_id'] )
     
    690692    $redirect_host_low = strtolower( $redirect['host'] );
    691693
    692     // Ignore differences in host capitalization, as this can lead to infinite redirects.
    693     // Only redirect no-www <=> yes-www.
     694    /*
     695     * Ignore differences in host capitalization, as this can lead to infinite redirects.
     696     * Only redirect no-www <=> yes-www.
     697     */
    694698    if ( $original_host_low === $redirect_host_low
    695699        || ( 'www.' . $original_host_low !== $redirect_host_low
Note: See TracChangeset for help on using the changeset viewer.