Ticket #39186: 39186.3.patch
File 39186.3.patch, 7.3 KB (added by , 8 years ago) |
---|
-
wp-admin/includes/class-wp-list-table.php
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 … … 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; -
wp-admin/includes/class-wp-plugins-list-table.php
601 601 if ( $is_active ) { 602 602 if ( current_user_can( 'manage_network_plugins' ) ) { 603 603 /* translators: %s: plugin name */ 604 $actions['deactivate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=deactivate& plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'deactivate-plugin_' . $plugin_file ) . '" aria-label="' . esc_attr( sprintf( _x( 'Network Deactivate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Network Deactivate' ) . '</a>';604 $actions['deactivate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=deactivate&doaction&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'deactivate-plugin_' . $plugin_file ) . '" aria-label="' . esc_attr( sprintf( _x( 'Network Deactivate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Network Deactivate' ) . '</a>'; 605 605 } 606 606 } else { 607 607 if ( current_user_can( 'manage_network_plugins' ) ) { 608 608 /* translators: %s: plugin name */ 609 $actions['activate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=activate& plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'activate-plugin_' . $plugin_file ) . '" class="edit" aria-label="' . esc_attr( sprintf( _x( 'Network Activate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Network Activate' ) . '</a>';609 $actions['activate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=activate&doaction&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'activate-plugin_' . $plugin_file ) . '" class="edit" aria-label="' . esc_attr( sprintf( _x( 'Network Activate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Network Activate' ) . '</a>'; 610 610 } 611 611 if ( current_user_can( 'delete_plugins' ) && ! is_plugin_active( $plugin_file ) ) { 612 612 /* translators: %s: plugin name */ … … 624 624 ); 625 625 } elseif ( $is_active ) { 626 626 /* translators: %s: plugin name */ 627 $actions['deactivate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=deactivate& plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'deactivate-plugin_' . $plugin_file ) . '" aria-label="' . esc_attr( sprintf( _x( 'Deactivate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Deactivate' ) . '</a>';627 $actions['deactivate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=deactivate&doaction&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'deactivate-plugin_' . $plugin_file ) . '" aria-label="' . esc_attr( sprintf( _x( 'Deactivate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Deactivate' ) . '</a>'; 628 628 } else { 629 629 /* translators: %s: plugin name */ 630 $actions['activate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=activate& plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'activate-plugin_' . $plugin_file ) . '" class="edit" aria-label="' . esc_attr( sprintf( _x( 'Activate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Activate' ) . '</a>';630 $actions['activate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=activate&doaction&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'activate-plugin_' . $plugin_file ) . '" class="edit" aria-label="' . esc_attr( sprintf( _x( 'Activate %s', 'plugin' ), $plugin_data['Name'] ) ) . '">' . __( 'Activate' ) . '</a>'; 631 631 632 632 if ( ! is_multisite() && current_user_can( 'delete_plugins' ) ) { 633 633 /* translators: %s: plugin name */ -
wp-admin/includes/class-wp-terms-list-table.php
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 } -
wp-admin/includes/class-wp-users-list-table.php
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 /** … … 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 -
wp-admin/users.php
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