From 7211888b958c91067ce465cf22f9c02e6ab083b6 Mon Sep 17 00:00:00 2001 From: SirLouen Date: Tue, 24 Feb 2026 16:59:30 +0100 Subject: [PATCH 1/2] Docs: Clarify description of remove_all_filters() method in WP_Hook class --- src/wp-includes/class-wp-hook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-hook.php b/src/wp-includes/class-wp-hook.php index cd6860c0f81f2..bbf58c7f6b38d 100644 --- a/src/wp-includes/class-wp-hook.php +++ b/src/wp-includes/class-wp-hook.php @@ -279,7 +279,7 @@ public function has_filters() { } /** - * Removes all callbacks from the current filter. + * Removes all callbacks registered on the filter hook. * * @since 4.7.0 * From 351cd6836cad0c0a87b2ed85e0de0bc78deaf98a Mon Sep 17 00:00:00 2001 From: SirLouen Date: Tue, 24 Feb 2026 17:02:39 +0100 Subject: [PATCH 2/2] Additional fixes --- src/wp-includes/class-wp-hook.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-wp-hook.php b/src/wp-includes/class-wp-hook.php index bbf58c7f6b38d..4265a6486bbbc 100644 --- a/src/wp-includes/class-wp-hook.php +++ b/src/wp-includes/class-wp-hook.php @@ -262,11 +262,11 @@ public function has_filter( $hook_name = '', $callback = false, $priority = fals } /** - * Checks if any callbacks have been registered for this hook. + * Checks if any callbacks have been registered for the filter hook. * * @since 4.7.0 * - * @return bool True if callbacks have been registered for the current hook, otherwise false. + * @return bool True if callbacks have been registered for the filter hook, otherwise false. */ public function has_filters() { foreach ( $this->callbacks as $callbacks ) {