Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r47101 r47122  
    4646
    4747        foreach ( $active_plugins as $plugin ) {
    48                 if ( ! validate_file( $plugin ) // $plugin must validate as file
    49                         && '.php' == substr( $plugin, -4 ) // $plugin must end with '.php'
    50                         && file_exists( WP_PLUGIN_DIR . '/' . $plugin ) // $plugin must exist
     48                if ( ! validate_file( $plugin )                     // $plugin must validate as file.
     49                        && '.php' == substr( $plugin, -4 )              // $plugin must end with '.php'.
     50                        && file_exists( WP_PLUGIN_DIR . '/' . $plugin ) // $plugin must exist.
    5151                        ) {
    5252                        $plugins[] = WP_PLUGIN_DIR . '/' . $plugin;
    … …  
    8686        }
    8787
    88         // Allow super admins to see blocked sites
     88        // Allow super admins to see blocked sites.
    8989        if ( is_super_admin() ) {
    9090                return true;
    … …  
    222222        /*
    223223         * @todo
    224          * caching, etc. Consider alternative optimization routes,
     224         * Caching, etc. Consider alternative optimization routes,
    225225         * perhaps as an opt-in for plugins, rather than using the pre_* filter.
    226226         * For example: The segments filter can expand or ignore paths.
    … …  
    306306                if ( defined( 'BLOG_ID_CURRENT_SITE' ) ) {
    307307                        $current_site->blog_id = BLOG_ID_CURRENT_SITE;
    308                 } elseif ( defined( 'BLOGID_CURRENT_SITE' ) ) { // deprecated.
     308                } elseif ( defined( 'BLOGID_CURRENT_SITE' ) ) { // Deprecated.
    309309                        $current_site->blog_id = BLOGID_CURRENT_SITE;
    310310                }
    … …  
    420420                        $destination .= 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain );
    421421                } elseif ( $subdomain ) {
    422                         // For a "subdomain" installation, the NOBLOGREDIRECT constant
    423                         // can be used to avoid a redirect to the signup form.
    424                         // Using the ms_site_not_found action is preferred to the constant.
     422                        /*
     423                         * For a "subdomain" installation, the NOBLOGREDIRECT constant
     424                         * can be used to avoid a redirect to the signup form.
     425                         * Using the ms_site_not_found action is preferred to the constant.
     426                         */
    425427                        if ( '%siteurl%' !== NOBLOGREDIRECT ) {
    426428                                $destination = NOBLOGREDIRECT;
Note: See TracChangeset for help on using the changeset viewer.