diff --git a/wp-includes/block-template.php b/wp-includes/block-template.php index 4d5742a4b9..9114e717eb 100644 --- a/wp-includes/block-template.php +++ b/wp-includes/block-template.php @@ -27,7 +27,7 @@ function _add_template_loader_filters() { // Request to resolve a template. if ( isset( $_GET['_wp-find-template'] ) ) { - add_filter( 'pre_get_posts', '_resolve_template_for_new_post' ); + add_action( 'pre_get_posts', '_resolve_template_for_new_post' ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 3ef4f66226..655afe99cc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-beta1-55334'; +$wp_version = '6.2-beta1-55335'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.