Changeset 38647 for trunk/src/wp-admin/link-manager.php
- Timestamp:
- 09/23/2016 08:32:48 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/link-manager.php
r37914 r38647 20 20 check_admin_referer( 'bulk-bookmarks' ); 21 21 22 $redirect_to = admin_url( 'link-manager.php' ); 23 $bulklinks = (array) $_REQUEST['linkcheck']; 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 wp_redirect( $redirect_to ); 49 exit; 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'] ) ) );
Note: See TracChangeset
for help on using the changeset viewer.