- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-bulk-plugin-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 Plugin %1$s (%2$d/%3$d)');23 $this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %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->plugin_info['Title']);29 public function before( $title = '' ) { 30 parent::before( $this->plugin_info['Title'] ); 32 31 } 33 32 34 33 /** 35 *36 34 * @param string $title 37 35 */ 38 public function after( $title = '') {39 parent::after( $this->plugin_info['Title']);36 public function after( $title = '' ) { 37 parent::after( $this->plugin_info['Title'] ); 40 38 $this->decrement_update_count( 'plugin' ); 41 39 } … … 45 43 public function bulk_footer() { 46 44 parent::bulk_footer(); 47 $update_actions = 45 $update_actions = array( 48 46 'plugins_page' => '<a href="' . self_admin_url( 'plugins.php' ) . '" target="_parent">' . __( 'Return to Plugins page' ) . '</a>', 49 'updates_page' => '<a href="' . self_admin_url( 'update-core.php' ) . '" target="_parent">' . __( 'Return to WordPress Updates 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( 'activate_plugins' ) ) 49 if ( ! current_user_can( 'activate_plugins' ) ) { 52 50 unset( $update_actions['plugins_page'] ); 51 } 53 52 54 53 /** … … 62 61 $update_actions = apply_filters( 'update_bulk_plugins_complete_actions', $update_actions, $this->plugin_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.