- Timestamp:
- 11/30/2017 11:09:33 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-bulk-theme-upgrader-skin.php
r41161 r42343 21 21 public function add_strings() { 22 22 parent::add_strings(); 23 $this->upgrader->strings['skin_before_update_header'] = __( 'Updating Theme %1$s (%2$d/%3$d)');23 $this->upgrader->strings['skin_before_update_header'] = __( 'Updating Theme %1$s (%2$d/%3$d)' ); 24 24 } 25 25 26 26 /** 27 *28 27 * @param string $title 29 28 */ 30 public function before( $title = '') {31 parent::before( $this->theme_info->display( 'Name') );29 public function before( $title = '' ) { 30 parent::before( $this->theme_info->display( 'Name' ) ); 32 31 } 33 32 34 33 /** 35 *36 34 * @param string $title 37 35 */ 38 public function after( $title = '') {39 parent::after( $this->theme_info->display( 'Name') );36 public function after( $title = '' ) { 37 parent::after( $this->theme_info->display( 'Name' ) ); 40 38 $this->decrement_update_count( 'theme' ); 41 39 } … … 45 43 public function bulk_footer() { 46 44 parent::bulk_footer(); 47 $update_actions = 48 'themes_page' => '<a href="' . self_admin_url( 'themes.php' ) . '" target="_parent">' . __( 'Return to Themes page' ) . '</a>',49 'updates_page' => '<a href="' . self_admin_url( 'update-core.php' ) . '" target="_parent">' . __( 'Return to WordPress Updates page' ) . '</a>' 45 $update_actions = array( 46 'themes_page' => '<a href="' . self_admin_url( 'themes.php' ) . '" target="_parent">' . __( 'Return to Themes page' ) . '</a>', 47 'updates_page' => '<a href="' . self_admin_url( 'update-core.php' ) . '" target="_parent">' . __( 'Return to WordPress Updates page' ) . '</a>', 50 48 ); 51 if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) 49 if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) { 52 50 unset( $update_actions['themes_page'] ); 51 } 53 52 54 53 /** … … 62 61 $update_actions = apply_filters( 'update_bulk_theme_complete_actions', $update_actions, $this->theme_info ); 63 62 64 if ( ! empty($update_actions) ) 65 $this->feedback(implode(' | ', (array)$update_actions)); 63 if ( ! empty( $update_actions ) ) { 64 $this->feedback( implode( ' | ', (array) $update_actions ) ); 65 } 66 66 } 67 67 }
Note: See TracChangeset
for help on using the changeset viewer.