Changeset 38647
- Timestamp:
- 09/23/2016 08:32:48 PM (8 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-comments.php
r37914 r38647 81 81 break; 82 82 } 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 83 99 } 84 100 -
trunk/src/wp-admin/edit-tags.php
r38629 r38647 196 196 $location = add_query_arg( array( 'error' => true, 'message' => 5 ), $location ); 197 197 break; 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 198 218 } 199 219 … … 211 231 * 212 232 * @since 4.6.0 213 * 233 * 214 234 * @param string $location The destination URL. 215 235 * @param object $tax The taxonomy object. -
trunk/src/wp-admin/edit.php
r38076 r38647 162 162 } 163 163 } 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 164 179 break; 165 180 } -
trunk/src/wp-admin/includes/class-wp-list-table.php
r38334 r38647 437 437 protected function bulk_actions( $which = '' ) { 438 438 if ( is_null( $this->_actions ) ) { 439 $ no_new_actions = $this->_actions = $this->get_bulk_actions();439 $this->_actions = $this->get_bulk_actions(); 440 440 /** 441 441 * Filters the list table Bulk Actions drop-down. … … 451 451 */ 452 452 $this->_actions = apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions ); 453 $this->_actions = array_intersect_assoc( $this->_actions, $no_new_actions );454 453 $two = ''; 455 454 } else { -
trunk/src/wp-admin/link-manager.php
r37914 r38647 20 20 check_admin_referer( 'bulk-bookmarks' ); 21 21 22 23 24 22 25 if ( 'delete' == $doaction ) { 23 $bulklinks = (array) $_REQUEST['linkcheck'];24 26 foreach ( $bulklinks as $link_id ) { 25 27 $link_id = (int) $link_id; … … 28 30 } 29 31 30 wp_redirect( add_query_arg('deleted', count( $bulklinks ), admin_url( 'link-manager.php' ) ) ); 31 exit; 32 $redirect_to = add_query_arg( 'deleted', count( $bulklinks ), $redirect_to ); 33 } else { 34 /** 35 * Fires when a custom bulk action should be handled. 36 * 37 * The redirect link should be modified with success or failure feedback 38 * from the action to be used to display feedback to the user. 39 * 40 * @since 4.7.0 41 * 42 * @param string $redirect_to The redirect URL. 43 * @param string $doaction The action being taken. 44 * @param array $bulklinks The links to take the action on. 45 */ 46 $redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $bulklinks ); 32 47 } 48 49 33 50 } elseif ( ! empty( $_GET['_wp_http_referer'] ) ) { 34 51 wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ); -
trunk/src/wp-admin/network/site-themes.php
r38320 r38647 123 123 } 124 124 break; 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 125 148 } 126 149 -
trunk/src/wp-admin/network/site-users.php
r38320 r38647 165 165 } 166 166 break; 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 167 189 } 168 190 -
trunk/src/wp-admin/network/sites.php
r38305 r38647 161 161 } 162 162 } 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 163 183 } else { 164 184 $location = network_admin_url( 'sites.php' ); -
trunk/src/wp-admin/network/themes.php
r37914 r38647 196 196 ), network_admin_url( 'themes.php' ) ) ); 197 197 exit; 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 198 222 } 223 199 224 } 200 225 -
trunk/src/wp-admin/network/users.php
r37914 r38647 94 94 } 95 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 96 118 wp_safe_redirect( add_query_arg( array( 'updated' => 'true', 'action' => $userfunction ), wp_get_referer() ) ); 97 119 } else { -
trunk/src/wp-admin/plugins.php
r38325 r38647 357 357 } 358 358 break; 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 359 384 } 385 360 386 } 361 387 -
trunk/src/wp-admin/upload.php
r37958 r38647 164 164 $location = add_query_arg( 'deleted', count( $post_ids ), $location ); 165 165 break; 166 167 168 169 170 171 172 173 174 175 176 177 178 179 166 180 } 167 181 -
trunk/src/wp-admin/users.php
r37914 r38647 411 411 } 412 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 413 435 $wp_list_table->prepare_items(); 414 436 $total_pages = $wp_list_table->get_pagination_arg( 'total_pages' );
Note: See TracChangeset
for help on using the changeset viewer.