Bulk_Theme_Upgrader_Skin

Bulk Theme Upgrader Skin for WordPress Theme Upgrades.

Defined (1)

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

/wp-admin/includes/class-bulk-theme-upgrader-skin.php  
  1. class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin { 
  2. public $theme_info = array(); // Theme_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 Theme %1$s (%2$d/%3$d)'); 
  7.  
  8. /** 
  9. * @param string $title 
  10. */ 
  11. public function before($title = '') { 
  12. parent::before( $this->theme_info->display('Name') ); 
  13.  
  14. /** 
  15. * @param string $title 
  16. */ 
  17. public function after($title = '') { 
  18. parent::after( $this->theme_info->display('Name') ); 
  19. $this->decrement_update_count( 'theme' ); 
  20.  
  21. /** 
  22. * @access public 
  23. */ 
  24. public function bulk_footer() { 
  25. parent::bulk_footer(); 
  26. $update_actions = array( 
  27. 'themes_page' => '<a href="' . self_admin_url( 'themes.php' ) . '" target="_parent">' . __( 'Return to Themes 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( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) 
  31. unset( $update_actions['themes_page'] ); 
  32.  
  33. /** 
  34. * Filters the list of action links available following bulk theme updates. 
  35. * @since 3.0.0 
  36. * @param array $update_actions Array of theme action links. 
  37. * @param array $theme_info Array of information for the last-updated theme. 
  38. */ 
  39. $update_actions = apply_filters( 'update_bulk_theme_complete_actions', $update_actions, $this->theme_info ); 
  40.  
  41. if ( ! empty($update_actions) ) 
  42. $this->feedback(implode(' | ', (array)$update_actions));