diff --git a/wp-includes/interactivity-api/class-wp-interactivity-api.php b/wp-includes/interactivity-api/class-wp-interactivity-api.php index 75eba82c16..f71684599f 100644 --- a/wp-includes/interactivity-api/class-wp-interactivity-api.php +++ b/wp-includes/interactivity-api/class-wp-interactivity-api.php @@ -584,7 +584,8 @@ final class WP_Interactivity_API { } elseif ( is_object( $current ) && isset( $current->$path_segment ) ) { $current = $current->$path_segment; } else { - return null; + $current = null; + break; } if ( $current instanceof Closure ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 6f1b7debc8..229f55972c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59397'; +$wp_version = '6.8-alpha-59398'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.