Bulk_Plugin_Upgrader_Skin

Bulk Plugin Upgrader Skin for WordPress Plugin Upgrades.

Defined (1)

The class is defined in the following location(s).

/wp-admin/includes/class-bulk-plugin-upgrader-skin.php  
  1. class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin { 
  2. public $plugin_info = array(); // Plugin_Upgrader::bulk() will fill this in. 
  3.  
  4. public function add_strings() { 
  5. parent::add_strings(); 
  6. $this->upgrader->strings['skin_before_update_header'] = __('Updating Plugin %1$s (%2$d/%3$d)'); 
  7.  
  8. /** 
  9. * @param string $title 
  10. */ 
  11. public function before($title = '') { 
  12. parent::before($this->plugin_info['Title']); 
  13.  
  14. /** 
  15. * @param string $title 
  16. */ 
  17. public function after($title = '') { 
  18. parent::after($this->plugin_info['Title']); 
  19. $this->decrement_update_count( 'plugin' ); 
  20.  
  21. /** 
  22. * @access public 
  23. */ 
  24. public function bulk_footer() { 
  25. parent::bulk_footer(); 
  26. $update_actions = array( 
  27. 'plugins_page' => '<a href="' . self_admin_url( 'plugins.php' ) . '" target="_parent">' . __( 'Return to Plugins page' ) . '</a>',  
  28. 'updates_page' => '<a href="' . self_admin_url( 'update-core.php' ) . '" target="_parent">' . __( 'Return to WordPress Updates page' ) . '</a>' 
  29. ); 
  30. if ( ! current_user_can( 'activate_plugins' ) ) 
  31. unset( $update_actions['plugins_page'] ); 
  32.  
  33. /** 
  34. * Filters the list of action links available following bulk plugin updates. 
  35. * @since 3.0.0 
  36. * @param array $update_actions Array of plugin action links. 
  37. * @param array $plugin_info Array of information for the last-updated plugin. 
  38. */ 
  39. $update_actions = apply_filters( 'update_bulk_plugins_complete_actions', $update_actions, $this->plugin_info ); 
  40.  
  41. if ( ! empty($update_actions) ) 
  42. $this->feedback(implode(' | ', (array)$update_actions));