+ default:
+ if ( isset( $_POST['checked'] ) ) {
+ check_admin_referer( 'bulk-themes' );
+ $themes = (array) $_POST['checked'];
+ $n = count( $themes );
+ /**
+ * 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.
+ *
+ * @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.
+ */
+ $referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes, $id );
+ } else {
+ $action = 'error';
+ $n = 'none';
+ }