Ticket #16031: 16031.2.patch
File 16031.2.patch, 5.4 KB (added by , 14 years ago) |
---|
-
wp-admin/users.php
284 284 285 285 default: 286 286 287 $wp_list_table->do_bulk_action(); 288 287 289 if ( !empty($_GET['_wp_http_referer']) ) { 288 290 wp_redirect(remove_query_arg(array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']))); 289 291 exit; -
wp-admin/edit-comments.php
72 72 wp_delete_comment( $comment_id ); 73 73 $deleted++; 74 74 break; 75 default: 76 $wp_list_table->do_bulk_action(); 75 77 } 76 78 } 77 79 -
wp-admin/includes/class-wp-list-table.php
302 302 } 303 303 304 304 /** 305 * Trigger the handler for the current bulk action. 306 * 307 * @since 3.1.0 308 * @access public 309 */ 310 /* final */ function do_bulk_action() { 311 $screen = get_current_screen(); 312 313 do_action( 'do_bulk_action-' . $screen->id . '-' . $this->current_action() ); 314 } 315 316 /** 305 317 * Generate row actions div 306 318 * 307 319 * @since 3.1.0 -
wp-admin/edit-tags.php
149 149 150 150 default: 151 151 152 $wp_list_table->do_bulk_action(); 153 152 154 if ( ! empty($_REQUEST['_wp_http_referer']) ) { 153 155 wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) ); 154 156 exit; -
wp-admin/upload.php
118 118 } 119 119 $location = add_query_arg( 'deleted', count( $post_ids ), $location ); 120 120 break; 121 default: 122 $wp_list_table->do_bulk_action(); 121 123 } 122 124 123 125 wp_redirect( $location ); -
wp-admin/network/site-users.php
143 143 $update = 'err_promote'; 144 144 } 145 145 break; 146 147 default: 148 $wp_list_table->do_bulk_action(); 146 149 } 147 150 148 151 restore_current_blog(); -
wp-admin/network/themes.php
165 165 wp_redirect( network_admin_url( "themes.php?deleted=".count( $themes )."&paged=$paged&s=$s" ) ); 166 166 exit; 167 167 break; 168 169 default: 170 $wp_list_table->do_bulk_action(); 168 171 } 169 172 } 170 173 -
wp-admin/network/site-themes.php
107 107 $n = 'none'; 108 108 } 109 109 break; 110 default: 111 $wp_list_table->do_bulk_action(); 110 112 } 111 113 112 114 update_option( 'allowedthemes', $allowed_themes ); 113 115 restore_current_blog(); 114 116 -
wp-admin/plugins.php
310 310 case 'clear-recent-list': 311 311 update_option('recently_activated', array()); 312 312 break; 313 default: 314 $wp_list_table->do_bulk_action(); 313 315 } 314 316 } 315 317 -
wp-admin/edit.php
119 119 $sendback = add_query_arg( $done, $sendback ); 120 120 } 121 121 break; 122 default: 123 $wp_list_table->do_bulk_action(); 122 124 } 123 125 124 126 $sendback = remove_query_arg( array('action', 'action2', 'tags_input', 'post_author', 'comment_status', 'ping_status', '_status', 'post', 'bulk_edit', 'post_view'), $sendback ); -
wp-admin/link-manager.php
13 13 14 14 $wp_list_table = get_list_table('WP_Links_List_Table'); 15 15 16 // Handle bulk deletes17 16 $doaction = $wp_list_table->current_action(); 18 17 19 if ( $doaction && isset( $_REQUEST['linkcheck']) ) {18 if ( $doaction ) ) { 20 19 check_admin_referer( 'bulk-bookmarks' ); 21 20 22 21 if ( 'delete' == $doaction ) { 23 $bulklinks = (array) $_REQUEST['linkcheck']; 24 foreach ( $bulklinks as $link_id ) { 25 $link_id = (int) $link_id; 22 if ( isset( $_REQUEST['linkcheck'] ) ) { 23 $bulklinks = (array) $_REQUEST['linkcheck']; 24 foreach ( $bulklinks as $link_id ) { 25 $link_id = (int) $link_id; 26 26 27 wp_delete_link( $link_id ); 27 wp_delete_link( $link_id ); 28 } 29 30 wp_redirect( add_query_arg('deleted', count( $bulklinks ), admin_url( 'link-manager.php' ) ) ); 31 exit; 28 32 } 29 30 wp_redirect( add_query_arg('deleted', count( $bulklinks ), admin_url( 'link-manager.php' ) ) ); 31 exit; 33 } else { 34 $wp_list_table->do_bulk_action(); 32 35 } 33 36 } elseif ( ! empty( $_REQUEST['_wp_http_referer'] ) ) { 34 37 wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), stripslashes( $_SERVER['REQUEST_URI'] ) ) );