Make WordPress Core

Changeset 28040


Ignore:
Timestamp:
04/08/2014 06:25:56 AM (12 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/includes/class-wp-upgrader-skins.php.

Fixes #27711.

File:
1 edited

Legend:

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

    r27996 r28040  
    154154            unset( $update_actions['activate_plugin'] );
    155155
    156         $update_actions = apply_filters('update_plugin_complete_actions', $update_actions, $this->plugin);
     156        /**
     157         * Filter the list of action links available following a single plugin update.
     158         *
     159         * @since 2.7.0
     160         *
     161         * @param array  $update_actions Array of plugin action links.
     162         * @param string $plugin         Path to the plugin file.
     163         */
     164        $update_actions = apply_filters( 'update_plugin_complete_actions', $update_actions, $this->plugin );
     165
    157166        if ( ! empty($update_actions) )
    158167            $this->feedback(implode(' | ', (array)$update_actions));
     
    325334            unset( $update_actions['plugins_page'] );
    326335
    327         $update_actions = apply_filters('update_bulk_plugins_complete_actions', $update_actions, $this->plugin_info);
     336        /**
     337         * Filter the list of action links available following bulk plugin updates.
     338         *
     339         * @since 3.0.0
     340         *
     341         * @param array $update_actions Array of plugin action links.
     342         * @param array $plugin_info    Array of information for the last-updated plugin.
     343         */
     344        $update_actions = apply_filters( 'update_bulk_plugins_complete_actions', $update_actions, $this->plugin_info );
     345
    328346        if ( ! empty($update_actions) )
    329347            $this->feedback(implode(' | ', (array)$update_actions));
     
    361379            unset( $update_actions['themes_page'] );
    362380
    363         $update_actions = apply_filters('update_bulk_theme_complete_actions', $update_actions, $this->theme_info );
     381        /**
     382         * Filter the list of action links available following bulk theme updates.
     383         *
     384         * @since 3.0.0
     385         *
     386         * @param array $update_actions Array of theme action links.
     387         * @param array $theme_info     Array of information for the last-updated theme.
     388         */
     389        $update_actions = apply_filters( 'update_bulk_theme_complete_actions', $update_actions, $this->theme_info );
     390
    364391        if ( ! empty($update_actions) )
    365392            $this->feedback(implode(' | ', (array)$update_actions));
     
    424451        }
    425452
    426         $install_actions = apply_filters('install_plugin_complete_actions', $install_actions, $this->api, $plugin_file);
     453        /**
     454         * Filter the list of action links available following a single plugin installation.
     455         *
     456         * @since 2.7.0
     457         *
     458         * @param array  $install_actions Array of plugin action links.
     459         * @param object $api             Object containing WordPress.org API plugin data. Empty
     460         *                                for non-API installs, such as when a plugin is installed
     461         *                                via upload.
     462         * @param string $plugin_file     Path to the plugin file.
     463         */
     464        $install_actions = apply_filters( 'install_plugin_complete_actions', $install_actions, $this->api, $plugin_file );
     465
    427466        if ( ! empty($install_actions) )
    428467            $this->feedback(implode(' | ', (array)$install_actions));
     
    497536            unset( $install_actions['activate'], $install_actions['preview'] );
    498537
    499         $install_actions = apply_filters('install_theme_complete_actions', $install_actions, $this->api, $stylesheet, $theme_info);
     538        /**
     539         * Filter the list of action links available following a single theme installation.
     540         *
     541         * @since 2.8.0
     542         *
     543         * @param array    $install_actions Array of theme action links.
     544         * @param object   $api             Object containing WordPress.org API theme data.
     545         * @param string   $stylesheet      Theme directory name.
     546         * @param WP_Theme $theme_info      Theme object.
     547         */
     548        $install_actions = apply_filters( 'install_theme_complete_actions', $install_actions, $this->api, $stylesheet, $theme_info );
    500549        if ( ! empty($install_actions) )
    501550            $this->feedback(implode(' | ', (array)$install_actions));
     
    559608        $update_actions['themes_page'] = '<a href="' . self_admin_url('themes.php') . '" title="' . esc_attr__('Return to Themes page') . '" target="_parent">' . __('Return to Themes page') . '</a>';
    560609
    561         $update_actions = apply_filters('update_theme_complete_actions', $update_actions, $this->theme);
     610        /**
     611         * Filter the list of action links available following a single theme update.
     612         *
     613         * @since 2.8.0
     614         *
     615         * @param array  $update_actions Array of theme action links.
     616         * @param string $theme          Theme directory name.
     617         */
     618        $update_actions = apply_filters( 'update_theme_complete_actions', $update_actions, $this->theme );
     619
    562620        if ( ! empty($update_actions) )
    563621            $this->feedback(implode(' | ', (array)$update_actions));
     
    609667        $update_actions = array();
    610668        $update_actions['updates_page'] = '<a href="' . self_admin_url( 'update-core.php' ) . '" title="' . esc_attr__( 'Go to WordPress Updates page' ) . '" target="_parent">' . __( 'Return to WordPress Updates' ) . '</a>';
     669
     670        /**
     671         * Filter the list of action links available following a translations update.
     672         *
     673         * @since 3.7.0
     674         *
     675         * @param array $update_actions Array of translations update links.
     676         */
    611677        $update_actions = apply_filters( 'update_translations_complete_actions', $update_actions );
    612678
Note: See TracChangeset for help on using the changeset viewer.