Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (4 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-admin/update.php

    r45932 r47122  
    9292
    9393            error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
    94             ini_set( 'display_errors', true ); //Ensure that Fatal errors are displayed.
     94            ini_set( 'display_errors', true ); // Ensure that fatal errors are displayed.
    9595            wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
    9696            include( WP_PLUGIN_DIR . '/' . $plugin );
     
    103103        }
    104104
    105         include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); //for plugins_api..
     105        include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); // For plugins_api().
    106106
    107107        check_admin_referer( 'install-plugin_' . $plugin );
     
    133133        }
    134134
    135         $type = 'web'; //Install plugin type, From Web or an Upload.
     135        $type = 'web'; // Install plugin type, From Web or an Upload.
    136136
    137137        $upgrader = new Plugin_Upgrader( new Plugin_Installer_Skin( compact( 'title', 'url', 'nonce', 'plugin', 'api' ) ) );
     
    159159        $nonce = 'plugin-upload';
    160160        $url   = add_query_arg( array( 'package' => $file_upload->id ), 'update.php?action=upload-plugin' );
    161         $type  = 'upload'; //Install plugin type, From Web or an Upload.
     161        $type  = 'upload'; // Install plugin type, From Web or an Upload.
    162162
    163163        $upgrader = new Plugin_Upgrader( new Plugin_Installer_Skin( compact( 'type', 'title', 'nonce', 'url' ) ) );
     
    225225        }
    226226
    227         include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); //for themes_api..
     227        include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); // For themes_api().
    228228
    229229        check_admin_referer( 'install-theme_' . $theme );
     
    237237                ),
    238238            )
    239         ); //Save on a bit of bandwidth.
     239        ); // Save on a bit of bandwidth.
    240240
    241241        if ( is_wp_error( $api ) ) {
     
    252252        $nonce = 'install-theme_' . $theme;
    253253        $url   = 'update.php?action=install-theme&theme=' . urlencode( $theme );
    254         $type  = 'web'; //Install theme type, From Web or an Upload.
     254        $type  = 'web'; // Install theme type, From Web or an Upload.
    255255
    256256        $upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact( 'title', 'url', 'nonce', 'plugin', 'api' ) ) );
     
    279279        $nonce = 'theme-upload';
    280280        $url   = add_query_arg( array( 'package' => $file_upload->id ), 'update.php?action=upload-theme' );
    281         $type  = 'upload'; //Install plugin type, From Web or an Upload.
     281        $type  = 'upload'; // Install theme type, From Web or an Upload.
    282282
    283283        $upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact( 'type', 'title', 'nonce', 'url' ) ) );
Note: See TracChangeset for help on using the changeset viewer.