Changeset 39600 for trunk/src/wp-admin/edit-comments.php
- Timestamp:
- 12/14/2016 04:17:38 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/edit-comments.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-comments.php
r39552 r39600 84 84 85 85 if ( ! in_array( $doaction, array( 'approve', 'unapprove', 'spam', 'unspam', 'trash', 'delete' ), true ) ) { 86 $screen = get_current_screen()->id; 87 86 88 /** 87 89 * Fires when a custom bulk action should be handled. … … 89 91 * The redirect link should be modified with success or failure feedback 90 92 * from the action to be used to display feedback to the user. 93 * 94 * The dynamic portion of the hook name, `$screen`, refers to the current screen ID. 91 95 * 92 96 * @since 4.7.0 … … 96 100 * @param array $items The items to take the action on. 97 101 */ 98 $redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $comment_ids );102 $redirect_to = apply_filters( "handle_bulk_actions-{$screen}", $redirect_to, $doaction, $comment_ids ); 99 103 } 100 104
Note: See TracChangeset
for help on using the changeset viewer.