--- a/wp/wp-includes/blocks/query.php Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-includes/blocks/query.php Fri Sep 05 18:52:52 2025 +0200
@@ -24,27 +24,7 @@
// Enqueue the script module and add the necessary directives if the block is
// interactive.
if ( $is_interactive ) {
- $suffix = wp_scripts_get_suffix();
- if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
- $module_url = gutenberg_url( '/build/interactivity/query.min.js' );
- }
-
- wp_register_script_module(
- '@wordpress/block-library/query',
- isset( $module_url ) ? $module_url : includes_url( "blocks/query/view{$suffix}.js" ),
- array(
- array(
- 'id' => '@wordpress/interactivity',
- 'import' => 'static',
- ),
- array(
- 'id' => '@wordpress/interactivity-router',
- 'import' => 'dynamic',
- ),
- ),
- defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' )
- );
- wp_enqueue_script_module( '@wordpress/block-library/query' );
+ wp_enqueue_script_module( '@wordpress/block-library/query/view' );
$p = new WP_HTML_Tag_Processor( $content );
if ( $p->next_tag() ) {
@@ -99,7 +79,7 @@
* @since 6.4.0
*
* @param array $parsed_block The block being rendered.
- * @return string Returns the parsed block, unmodified.
+ * @return array Returns the parsed block, unmodified.
*/
function block_core_query_disable_enhanced_pagination( $parsed_block ) {
static $enhanced_query_stack = array();