diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:51:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:51:18 +0000 |
commit | 0e41b5d52fdc6af6442816b5f465c9db9f84e126 (patch) | |
tree | e139a90049b158d4eed892d1662ee7f5c358fa31 /wp-includes/blocks/query-pagination-next.php | |
parent | Adding upstream version 6.5.5+dfsg1. (diff) | |
download | wordpress-0e41b5d52fdc6af6442816b5f465c9db9f84e126.tar.xz wordpress-0e41b5d52fdc6af6442816b5f465c9db9f84e126.zip |
Adding upstream version 6.6.1+dfsg1.upstream/6.6.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/blocks/query-pagination-next.php')
-rw-r--r-- | wp-includes/blocks/query-pagination-next.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/wp-includes/blocks/query-pagination-next.php b/wp-includes/blocks/query-pagination-next.php index ca134f6..3b5be47 100644 --- a/wp-includes/blocks/query-pagination-next.php +++ b/wp-includes/blocks/query-pagination-next.php @@ -8,6 +8,10 @@ /** * Renders the `core/query-pagination-next` block on the server. * + * @since 5.8.0 + * + * @global WP_Query $wp_query WordPress Query object. + * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP_Block $block Block instance. @@ -73,7 +77,7 @@ function render_block_core_query_pagination_next( $attributes, $content, $block ) ) { $p->set_attribute( 'data-wp-key', 'query-pagination-next' ); $p->set_attribute( 'data-wp-on--click', 'core/query::actions.navigate' ); - $p->set_attribute( 'data-wp-on--mouseenter', 'core/query::actions.prefetch' ); + $p->set_attribute( 'data-wp-on-async--mouseenter', 'core/query::actions.prefetch' ); $p->set_attribute( 'data-wp-watch', 'core/query::callbacks.prefetch' ); $content = $p->get_updated_html(); } @@ -84,6 +88,8 @@ function render_block_core_query_pagination_next( $attributes, $content, $block /** * Registers the `core/query-pagination-next` block on the server. + * + * @since 5.8.0 */ function register_block_core_query_pagination_next() { register_block_type_from_metadata( |