Make WordPress Core


Ignore:
Timestamp:
05/28/2015 09:40:27 PM (11 years ago)
Author:
wonderboymusic
Message:

Add @global annotations for wp-admin/*.

See #32444.

File:
1 edited

Legend:

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

    r31991 r32642  
    142142         *
    143143         * @since 2.8.0
     144         *
     145         * @global WP_Filesystem_Base $wp_filesystem Subclass
    144146         *
    145147         * @param array $directories                  Optional. A list of directories. If any of these do
     
    245247         * @since 2.8.0
    246248         *
     249         * @global WP_Filesystem_Base $wp_filesystem Subclass
     250         *
    247251         * @param string $package        Full path to the package file.
    248252         * @param bool   $delete_package Optional. Whether to delete the package file after attempting
     
    297301         *
    298302         * @since 2.8.0
     303         *
     304         * @global WP_Filesystem_Base $wp_filesystem Subclass
     305         * @global array              $wp_theme_directories
    299306         *
    300307         * @param array|string $args {
     
    627634         * @since 2.8.0
    628635         *
     636         * @global WP_Filesystem_Base $wp_filesystem Subclass
     637         *
    629638         * @param bool $enable True to enable maintenance mode, false to disable.
    630639         */
     
    958967         * @since 3.3.0
    959968         *
     969         * @global WP_Filesystem_Base $wp_filesystem Subclass
     970         *
    960971         * @param string $source The path to the downloaded package source.
    961972         * @return string|WP_Error The source as passed, or a {@see WP_Error} object if no plugins were found.
     
    10511062         *
    10521063         * @since 2.8.0
     1064         *
     1065         * @global WP_Filesystem_Base $wp_filesystem Subclass
    10531066         */
    10541067        public function delete_old_plugin($removed, $local_destination, $remote_destination, $plugin) {
     
    14731486         * @since 3.3.0
    14741487         *
     1488         * @global WP_Filesystem_Base $wp_filesystem Subclass
     1489         *
    14751490         * @param string $source The full path to the package source.
    14761491         * @return string|WP_Error The source or a WP_Error.
     
    15641579         *
    15651580         * @since 2.8.0
     1581         *
     1582         * @global WP_Filesystem_Base $wp_filesystem Subclass
    15661583         */
    15671584        public function delete_old_theme( $removed, $local_destination, $remote_destination, $theme ) {
     
    17351752         *
    17361753         * @since 3.7.0
     1754         *
     1755         * @global WP_Filesystem_Base $wp_filesystem Subclass
    17371756         *
    17381757         * @param array $language_updates Optional. Language pack updates. Default empty array.
     
    18601879         *
    18611880         * @since 3.7.0
     1881         *
     1882         * @global WP_Filesystem_Base $wp_filesystem Subclass
    18621883         */
    18631884        public function check_package( $source, $remote_source ) {
     
    19451966         *
    19461967         * @since 2.8.0
     1968         *
     1969         * @global WP_Filesystem_Base $wp_filesystem Subclass
     1970         * @global callback           $_wp_filesystem_direct_method
    19471971         *
    19481972         * @param object $current Response object for whether WordPress is current.
     
    22192243         * @since 3.7.0
    22202244         *
     2245         * @global string $wp_version
     2246         * @global string $wp_local_package
     2247         *
    22212248         * @return bool True if the checksums match, otherwise false.
    22222249         */
     
    24632490         *
    24642491         * @since 3.7.0
     2492         *
     2493         * @global wpdb $wpdb
    24652494         *
    24662495         * @param string $type    The type of update being checked: 'core', 'theme',
     
    26882717         *
    26892718         * @since 3.7.0
     2719         *
     2720         * @global wpdb   $wpdb
     2721         * @global string $wp_version
    26902722         */
    26912723        public function run() {
     
    28222854         * If we tried to perform a core update, check if we should send an email,
    28232855         * and if we need to avoid processing future updates.
     2856         *
     2857         * @global string $wp_version
    28242858         *
    28252859         * @param object $update_result The result of the core update. Includes the update offer and result.
     
    29102944         * @since 3.7.0
    29112945         *
     2946         * @global string $wp_version
     2947         *
    29122948         * @param string $type        The type of email to send. Can be one of 'success', 'fail', 'manual', 'critical'.
    29132949         * @param object $core_update The update offer that was attempted.
Note: See TracChangeset for help on using the changeset viewer.