Changeset 28040
- Timestamp:
- 04/08/2014 06:25:56 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader-skins.php
r27996 r28040 154 154 unset( $update_actions['activate_plugin'] ); 155 155 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 157 166 if ( ! empty($update_actions) ) 158 167 $this->feedback(implode(' | ', (array)$update_actions)); … … 325 334 unset( $update_actions['plugins_page'] ); 326 335 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 328 346 if ( ! empty($update_actions) ) 329 347 $this->feedback(implode(' | ', (array)$update_actions)); … … 361 379 unset( $update_actions['themes_page'] ); 362 380 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 364 391 if ( ! empty($update_actions) ) 365 392 $this->feedback(implode(' | ', (array)$update_actions)); … … 424 451 } 425 452 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 427 466 if ( ! empty($install_actions) ) 428 467 $this->feedback(implode(' | ', (array)$install_actions)); … … 497 536 unset( $install_actions['activate'], $install_actions['preview'] ); 498 537 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 ); 500 549 if ( ! empty($install_actions) ) 501 550 $this->feedback(implode(' | ', (array)$install_actions)); … … 559 608 $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>'; 560 609 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 562 620 if ( ! empty($update_actions) ) 563 621 $this->feedback(implode(' | ', (array)$update_actions)); … … 609 667 $update_actions = array(); 610 668 $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 */ 611 677 $update_actions = apply_filters( 'update_translations_complete_actions', $update_actions ); 612 678
Note: See TracChangeset
for help on using the changeset viewer.