Skip to content

Commit b57f606

Browse files
committed
use stricter/faster type for comparison
1 parent ba4c3c4 commit b57f606

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ function do_action( $hook_name, ...$arg ) {
507507
$wp_current_filter[] = $hook_name;
508508
}
509509

510-
if ( empty( $arg ) ) {
510+
if ( $arg === array() ) {
511511
$arg[] = '';
512512
}
513513

0 commit comments

Comments
 (0)