Ticket #16031: 16031.6.diff
File 16031.6.diff, 11.8 KB (added by , 8 years ago) |
---|
-
src/wp-admin/edit-comments.php
91 91 * 92 92 * @since 4.7.0 93 93 * 94 * @param string $redirect_ toThe redirect URL.95 * @param string $doaction The action being taken.96 * @param array $ comment_ids The comments to take the action on.94 * @param string $redirect_url The redirect URL. 95 * @param string $doaction The action being taken. 96 * @param array $items The items to take the action on. 97 97 */ 98 98 $redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $comment_ids ); 99 99 } -
src/wp-admin/edit-tags.php
174 174 } 175 175 check_admin_referer( 'bulk-tags' ); 176 176 $tags = (array) $_REQUEST['delete_tags']; 177 /** 178 * Fires when a custom bulk action should be handled. 179 * 180 * The sendback link should be modified with success or failure feedback 181 * from the action to be used to display feedback to the user. 182 * 183 * @since 4.7.0 184 * 185 * @param string $location The redirect URL. 186 * @param string $action The action being taken. 187 * @param array $tags The tag IDs to take the action on. 188 */ 177 /** This action is documented in wp-admin/edit-comments.php */ 189 178 $location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $wp_list_table->current_action(), $tags ); 190 179 break; 191 180 } -
src/wp-admin/edit.php
163 163 } 164 164 break; 165 165 default: 166 /** 167 * Fires when a custom bulk action should be handled. 168 * 169 * The sendback link should be modified with success or failure feedback 170 * from the action to be used to display feedback to the user. 171 * 172 * @since 4.7.0 173 * 174 * @param string $sendback The redirect URL. 175 * @param string $doaction The action being taken. 176 * @param array $post_ids The post IDs to take the action on. 177 */ 166 /** This action is documented in wp-admin/edit-comments.php */ 178 167 $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $post_ids ); 179 168 break; 180 169 } -
src/wp-admin/link-manager.php
31 31 32 32 $redirect_to = add_query_arg( 'deleted', count( $bulklinks ), $redirect_to ); 33 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 */ 34 /** This action is documented in wp-admin/edit-comments.php */ 46 35 $redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $bulklinks ); 47 36 } 48 37 wp_redirect( $redirect_to ); -
src/wp-admin/network/site-themes.php
132 132 * 133 133 * @since 4.7.0 134 134 * 135 * @param string $re fererThe redirect URL.136 * @param string $action The action being taken.137 * @param array $ themes The themes to take the action on.138 * @param int $site_id The current site id135 * @param string $redirect_url The redirect URL. 136 * @param string $action The action being taken. 137 * @param array $items The items to take the action on. 138 * @param int $site_id The site id. 139 139 */ 140 $referer = apply_filters( ' handle_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes, $id );140 $referer = apply_filters( 'network_handle_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes, $id ); 141 141 } else { 142 142 $action = 'error'; 143 143 $n = 'none'; -
src/wp-admin/network/site-users.php
170 170 } 171 171 check_admin_referer( 'bulk-users' ); 172 172 $userids = $_REQUEST['users']; 173 /** 174 * Fires when a custom bulk action should be handled. 175 * 176 * The redirect link should be modified with success or failure feedback 177 * from the action to be used to display feedback to the user. 178 * 179 * @since 4.7.0 180 * 181 * @param string $referer The redirect URL. 182 * @param string $action The action being taken. 183 * @param array $userids The users to take the action on. 184 * @param int $id The id of the current site 185 */ 186 $referer = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $referer, $action, $userids, $id ); 173 /** This action is documented in wp-admin/network/site-themes.php */ 174 $referer = apply_filters( 'network_handle_bulk_actions-' . get_current_screen()->id, $referer, $action, $userids, $id ); 187 175 $update = $action; 188 176 break; 189 177 } -
src/wp-admin/network/sites.php
160 160 if ( ! in_array( $doaction, array( 'delete', 'spam', 'notspam' ), true ) ) { 161 161 $redirect_to = wp_get_referer(); 162 162 $blogs = (array) $_POST['allblogs']; 163 /** 164 * Fires when a custom bulk action should be handled. 165 * 166 * The redirect link should be modified with success or failure feedback 167 * from the action to be used to display feedback to the user. 168 * 169 * @since 4.7.0 170 * 171 * @param string $redirect_to The redirect URL. 172 * @param string $doaction The action being taken. 173 * @param array $blogs The blogs to take the action on. 174 * @param int $site_id The current site id. 175 */ 176 $redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $blogs, $id ); 163 /** This action is documented in wp-admin/network/site-themes.php */ 164 $redirect_to = apply_filters( 'network_handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $blogs, $id ); 177 165 wp_safe_redirect( $redirect_to ); 178 166 exit(); 179 167 } -
src/wp-admin/network/themes.php
200 200 } 201 201 check_admin_referer( 'bulk-themes' ); 202 202 203 /** 204 * Fires when a custom bulk action should be handled. 205 * 206 * The redirect link should be modified with success or failure feedback 207 * from the action to be used to display feedback to the user. 208 * 209 * @since 4.7.0 210 * 211 * @param string $referer The redirect URL. 212 * @param string $action The action being taken. 213 * @param array $themes The themes to take the action on. 214 */ 215 $referer = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes ); 203 /** This action is documented in wp-admin/network/site-themes.php */ 204 $referer = apply_filters( 'network_handle_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes ); 216 205 217 206 wp_safe_redirect( $referer ); 218 207 exit; -
src/wp-admin/network/users.php
94 94 $sendback = wp_get_referer(); 95 95 96 96 $user_ids = (array) $_POST['allusers']; 97 /** 98 * Fires when a custom bulk action should be handled. 99 * 100 * The sendback link should be modified with success or failure feedback 101 * from the action to be used to display feedback to the user. 102 * 103 * @since 4.7.0 104 * 105 * @param string $sendback The redirect URL. 106 * @param string $doaction The action being taken. 107 * @param array $user_ids The users to take the action on. 108 */ 109 $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $user_ids ); 97 /** This action is documented in wp-admin/network/site-themes.php */ 98 $sendback = apply_filters( 'network_handle_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $user_ids ); 110 99 111 100 wp_safe_redirect( $sendback ); 112 101 exit(); -
src/wp-admin/plugins.php
363 363 $plugins = isset( $_POST['checked'] ) ? (array) $_POST['checked'] : array(); 364 364 $sendback = wp_get_referer(); 365 365 366 /** 367 * Fires when a custom bulk action should be handled. 368 * 369 * The sendback link should be modified with success or failure feedback 370 * from the action to be used to display feedback to the user. 371 * 372 * @since 4.7.0 373 * 374 * @param string $sendback The redirect URL. 375 * @param string $action The action being taken. 376 * @param array $plugins The plugins to take the action on. 377 */ 366 /** This action is documented in wp-admin/edit-comments.php */ 378 367 $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $action, $plugins ); 379 380 368 wp_safe_redirect( $sendback ); 381 369 exit; 382 370 } -
src/wp-admin/upload.php
164 164 $location = add_query_arg( 'deleted', count( $post_ids ), $location ); 165 165 break; 166 166 default: 167 /** 168 * Fires when a custom bulk action should be handled. 169 * 170 * The redirect link should be modified with success or failure feedback 171 * from the action to be used to display feedback to the user. 172 * 173 * @since 4.7.0 174 * 175 * @param string $location The redirect URL. 176 * @param string $doaction The action being taken. 177 * @param array $post_ids The posts to take the action on. 178 */ 167 /** This action is documented in wp-admin/edit-comments.php */ 179 168 $location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $doaction, $post_ids ); 180 169 } 181 170 -
src/wp-admin/users.php
414 414 $userids = $_REQUEST['users']; 415 415 $sendback = wp_get_referer(); 416 416 417 /** 418 * Fires when a custom bulk action should be handled. 419 * 420 * The sendback link should be modified with success or failure feedback 421 * from the action to be used to display feedback to the user. 422 * 423 * @since 4.7.0 424 * 425 * @param string $sendback The redirect URL. 426 * @param string $action The action being taken. 427 * @param array $userids The users to take the action on. 428 */ 417 /** This action is documented in wp-admin/edit-comments.php */ 429 418 $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $wp_list_table->current_action(), $userids ); 430 419 431 420 wp_safe_redirect( $sendback );