diff --git src/wp-admin/includes/class-wp-list-table.php src/wp-admin/includes/class-wp-list-table.php
index bf642ac..9929d56 100644
|
|
class WP_List_Table { |
470 | 470 | |
471 | 471 | echo "</select>\n"; |
472 | 472 | |
473 | | submit_button( __( 'Apply' ), 'action', '', false, array( 'id' => "doaction$two" ) ); |
| 473 | submit_button( __( 'Apply' ), 'action', '', false, array( 'id' => "doaction$two", 'name' => "doaction$two" ) ); |
474 | 474 | echo "\n"; |
475 | 475 | } |
476 | 476 | |
… |
… |
class WP_List_Table { |
486 | 486 | if ( isset( $_REQUEST['filter_action'] ) && ! empty( $_REQUEST['filter_action'] ) ) |
487 | 487 | return false; |
488 | 488 | |
489 | | if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) |
| 489 | if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] && isset($_REQUEST['doaction']) ) |
490 | 490 | return $_REQUEST['action']; |
491 | 491 | |
492 | | if ( isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2'] ) |
| 492 | if ( isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2'] && isset($_REQUEST['doaction2']) ) |
493 | 493 | return $_REQUEST['action2']; |
494 | 494 | |
495 | 495 | return false; |
diff --git src/wp-admin/includes/class-wp-terms-list-table.php src/wp-admin/includes/class-wp-terms-list-table.php
index 7d59624..efbcf2c 100644
|
|
class WP_Terms_List_Table extends WP_List_Table { |
164 | 164 | * @return string |
165 | 165 | */ |
166 | 166 | public function current_action() { |
167 | | if ( isset( $_REQUEST['action'] ) && isset( $_REQUEST['delete_tags'] ) && ( 'delete' === $_REQUEST['action'] || 'delete' === $_REQUEST['action2'] ) ) |
| 167 | if ( isset( $_REQUEST['delete_tags'] ) && ( |
| 168 | ( isset( $_REQUEST['doaction'] ) && 'delete' == $_REQUEST['action'] ) || |
| 169 | ( isset( $_REQUEST['doaction2'] ) && 'delete' == $_REQUEST['action2'] ) |
| 170 | ) ) { |
168 | 171 | return 'bulk-delete'; |
| 172 | } |
169 | 173 | |
170 | 174 | return parent::current_action(); |
171 | 175 | } |
diff --git src/wp-admin/includes/class-wp-users-list-table.php src/wp-admin/includes/class-wp-users-list-table.php
index 3b7795d..69c0582 100644
|
|
class WP_Users_List_Table extends WP_List_Table { |
267 | 267 | <?php wp_dropdown_roles(); ?> |
268 | 268 | </select> |
269 | 269 | <?php |
270 | | submit_button( __( 'Change' ), '', 'changeit', false ); |
| 270 | $submit_name = 'bottom' === $which ? 'changeit2' : 'changeit'; |
| 271 | submit_button( __( 'Change' ), '', $submit_name, false ); |
271 | 272 | endif; |
272 | 273 | |
273 | 274 | /** |
… |
… |
class WP_Users_List_Table extends WP_List_Table { |
295 | 296 | * @return string The bulk action required. |
296 | 297 | */ |
297 | 298 | public function current_action() { |
298 | | if ( isset( $_REQUEST['changeit'] ) && |
299 | | ( ! empty( $_REQUEST['new_role'] ) || ! empty( $_REQUEST['new_role2'] ) ) ) { |
| 299 | if ( ( isset( $_REQUEST['changeit'] ) && ! empty( $_REQUEST['new_role'] ) ) || ( isset( $_REQUEST['changeit2'] ) && ! empty( $_REQUEST['new_role2'] ) ) ) { |
300 | 300 | return 'promote'; |
301 | 301 | } |
302 | 302 | |
diff --git src/wp-admin/users.php src/wp-admin/users.php
index 214c06d..f1d29c1 100644
|
|
case 'promote': |
103 | 103 | |
104 | 104 | $editable_roles = get_editable_roles(); |
105 | 105 | $role = false; |
106 | | if ( ! empty( $_REQUEST['new_role2'] ) ) { |
| 106 | if ( isset( $_REQUEST['changeit2'] ) && ! empty( $_REQUEST['new_role2'] ) ) { |
107 | 107 | $role = $_REQUEST['new_role2']; |
108 | | } elseif ( ! empty( $_REQUEST['new_role'] ) ) { |
| 108 | } elseif ( isset( $_REQUEST['changeit'] ) && ! empty( $_REQUEST['new_role'] ) ) { |
109 | 109 | $role = $_REQUEST['new_role']; |
110 | 110 | } |
111 | 111 | |