mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +00:00
General: Use interpolation instead of concatenation for all dynamic hook names.
This fixes the rendering of the hook names on developer.wordpress.org. Props keesiemeijer Fixes #39148 git-svn-id: https://develop.svn.wordpress.org/trunk@39600 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -124,20 +124,24 @@ if ( $action ) {
|
||||
check_admin_referer( 'bulk-themes' );
|
||||
$themes = (array) $_POST['checked'];
|
||||
$n = count( $themes );
|
||||
$screen = get_current_screen()->id;
|
||||
|
||||
/**
|
||||
* Fires when a custom bulk action should be handled.
|
||||
*
|
||||
* The redirect link should be modified with success or failure feedback
|
||||
* from the action to be used to display feedback to the user.
|
||||
*
|
||||
* The dynamic portion of the hook name, `$screen`, refers to the current screen ID.
|
||||
*
|
||||
* @since 4.7.0
|
||||
*
|
||||
* @param string $redirect_url The redirect URL.
|
||||
* @param string $action The action being taken.
|
||||
* @param array $items The items to take the action on.
|
||||
* @param int $site_id The site id.
|
||||
* @param int $site_id The site ID.
|
||||
*/
|
||||
$referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes, $id );
|
||||
$referer = apply_filters( "handle_network_bulk_actions-{$screen}", $referer, $action, $themes, $id );
|
||||
} else {
|
||||
$action = 'error';
|
||||
$n = 'none';
|
||||
|
||||
Reference in New Issue
Block a user