Skip to content

Commit 19b81b7

Browse files
committed
Remove redundant check
1 parent 08df961 commit 19b81b7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/wp-includes/class-wp-hook.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,6 @@ public function has_filter( $hook_name = '', $callback = false, $priority = fals
248248
}
249249

250250
if ( is_int( $priority ) ) {
251-
// If there are no callbacks at the requested priority, clearly it wasn't added.
252-
if ( ! isset( $this->callbacks[ $priority ] ) ) {
253-
return false;
254-
}
255251
return isset( $this->callbacks[ $priority ][ $function_key ] );
256252
}
257253

0 commit comments

Comments
 (0)