rebase on oct-10-2023
This commit is contained in:
@@ -290,11 +290,13 @@ final class WP_Hook implements Iterator, ArrayAccess {
|
||||
$nesting_level = $this->nesting_level++;
|
||||
|
||||
$this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
|
||||
$num_args = count( $args );
|
||||
|
||||
$num_args = count( $args );
|
||||
|
||||
do {
|
||||
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
|
||||
$priority = $this->current_priority[ $nesting_level ];
|
||||
|
||||
$priority = $this->current_priority[ $nesting_level ];
|
||||
|
||||
foreach ( $this->callbacks[ $priority ] as $the_ ) {
|
||||
if ( ! $this->doing_action ) {
|
||||
@@ -410,7 +412,7 @@ final class WP_Hook implements Iterator, ArrayAccess {
|
||||
$normalized = array();
|
||||
|
||||
foreach ( $filters as $hook_name => $callback_groups ) {
|
||||
if ( is_object( $callback_groups ) && $callback_groups instanceof WP_Hook ) {
|
||||
if ( $callback_groups instanceof WP_Hook ) {
|
||||
$normalized[ $hook_name ] = $callback_groups;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user