Make WordPress Core


Ignore:
Timestamp:
07/10/2023 10:46:22 PM (11 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].

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

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

    r55990 r56192  
    227227     */
    228228
    229     // Either www or non-www is supported, not both. If a www domain is requested,
    230     // query for both to provide the proper redirect.
     229    /*
     230     * Either www or non-www is supported, not both. If a www domain is requested,
     231     * query for both to provide the proper redirect.
     232     */
    231233    $domains = array( $domain );
    232234    if ( str_starts_with( $domain, 'www.' ) ) {
     
    311313            $current_blog = get_site_by_path( $domain, $path );
    312314        } elseif ( '/' !== $current_site->path && 0 === strcasecmp( $current_site->domain, $domain ) && 0 === stripos( $path, $current_site->path ) ) {
    313             // If the current network has a path and also matches the domain and path of the request,
    314             // we need to look for a site using the first path segment following the network's path.
     315            /*
     316             * If the current network has a path and also matches the domain and path of the request,
     317             * we need to look for a site using the first path segment following the network's path.
     318             */
    315319            $current_blog = get_site_by_path( $domain, $path, 1 + count( explode( '/', trim( $current_site->path, '/' ) ) ) );
    316320        } else {
Note: See TracChangeset for help on using the changeset viewer.