equal
deleted
inserted
replaced
18 class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin { |
18 class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin { |
19 public $plugin_info = array(); // Plugin_Upgrader::bulk_upgrade() will fill this in. |
19 public $plugin_info = array(); // Plugin_Upgrader::bulk_upgrade() will fill this in. |
20 |
20 |
21 public function add_strings() { |
21 public function add_strings() { |
22 parent::add_strings(); |
22 parent::add_strings(); |
23 /* translators: 1: name of plugin being updated, 2: number of updating plugin, 3: total number of plugins being updated */ |
23 /* translators: 1: Plugin name, 2: Number of the plugin, 3: Total number of plugins being updated. */ |
24 $this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)' ); |
24 $this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)' ); |
25 } |
25 } |
26 |
26 |
27 /** |
27 /** |
28 * @param string $title |
28 * @param string $title |
41 |
41 |
42 /** |
42 /** |
43 */ |
43 */ |
44 public function bulk_footer() { |
44 public function bulk_footer() { |
45 parent::bulk_footer(); |
45 parent::bulk_footer(); |
|
46 |
46 $update_actions = array( |
47 $update_actions = array( |
47 'plugins_page' => '<a href="' . self_admin_url( 'plugins.php' ) . '" target="_parent">' . __( 'Return to Plugins page' ) . '</a>', |
48 'plugins_page' => sprintf( |
48 'updates_page' => '<a href="' . self_admin_url( 'update-core.php' ) . '" target="_parent">' . __( 'Return to WordPress Updates page' ) . '</a>', |
49 '<a href="%s" target="_parent">%s</a>', |
|
50 self_admin_url( 'plugins.php' ), |
|
51 __( 'Return to Plugins page' ) |
|
52 ), |
|
53 'updates_page' => sprintf( |
|
54 '<a href="%s" target="_parent">%s</a>', |
|
55 self_admin_url( 'update-core.php' ), |
|
56 __( 'Return to WordPress Updates page' ) |
|
57 ), |
49 ); |
58 ); |
|
59 |
50 if ( ! current_user_can( 'activate_plugins' ) ) { |
60 if ( ! current_user_can( 'activate_plugins' ) ) { |
51 unset( $update_actions['plugins_page'] ); |
61 unset( $update_actions['plugins_page'] ); |
52 } |
62 } |
53 |
63 |
54 /** |
64 /** |