Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:33:45 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve comments in some wp-admin files per the documentation standards.

Follow-up to [47084].

Props passoniate, apedog.
Fixes #49223, #49227.

File:
1 edited

Legend:

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

    r47085 r47119  
    182182    if ( isset( $_POST['subdomain_install'] ) ) {
    183183        $subdomain_install = (bool) $_POST['subdomain_install'];
    184     } elseif ( apache_mod_loaded( 'mod_rewrite' ) ) { // assume nothing
     184    } elseif ( apache_mod_loaded( 'mod_rewrite' ) ) { // Assume nothing.
    185185        $subdomain_install = true;
    186186    } elseif ( ! allow_subdirectory_install() ) {
     
    189189        $subdomain_install = false;
    190190        $got_mod_rewrite   = got_mod_rewrite();
    191         if ( $got_mod_rewrite ) { // dangerous assumptions
     191        if ( $got_mod_rewrite ) { // Dangerous assumptions.
    192192            echo '<div class="updated inline"><p><strong>' . __( 'Note:' ) . '</strong> ';
    193193            printf(
     
    207207        }
    208208
    209         if ( $got_mod_rewrite || $is_apache ) { // Protect against mod_rewrite mimicry (but ! Apache)
     209        if ( $got_mod_rewrite || $is_apache ) { // Protect against mod_rewrite mimicry (but ! Apache).
    210210            echo '<p>';
    211211            printf(
     
    226226            <strong><?php _e( 'You cannot change this later.' ); ?></strong></p>
    227227        <p><?php _e( 'You will need a wildcard DNS record if you are going to use the virtual host (sub-domain) functionality.' ); ?></p>
    228         <?php // @todo: Link to an MS readme? ?>
     228        <?php // @todo Link to an MS readme? ?>
    229229        <table class="form-table" role="presentation">
    230230            <tr>
     
    548548    <?php
    549549    if ( iis7_supports_permalinks() ) :
    550         // IIS doesn't support RewriteBase, all your RewriteBase are belong to us
     550        // IIS doesn't support RewriteBase, all your RewriteBase are belong to us.
    551551        $iis_subdir_match       = ltrim( $base, '/' ) . $subdir_match;
    552552        $iis_rewrite_base       = ltrim( $base, '/' ) . $rewrite_base;
     
    617617
    618618        <?php
    619     else : // end iis7_supports_permalinks(). construct an htaccess file instead:
     619    else : // End iis7_supports_permalinks(). Construct an .htaccess file instead:
    620620
    621621        $ms_files_rewriting = '';
     
    659659
    660660        <?php
    661     endif; // end IIS/Apache code branches.
     661    endif; // End IIS/Apache code branches.
    662662
    663663    if ( ! is_multisite() ) {
Note: See TracChangeset for help on using the changeset viewer.