diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:51:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:51:22 +0000 |
commit | fc0a79914946dac00ccd51b1aacffe267de7210e (patch) | |
tree | 1403384efbfe8f8776ff60aaa40f7d535c02c822 /wp-includes/blocks/query-pagination-previous.php | |
parent | Releasing progress-linux version 6.5.5+dfsg1-1~progress7.99u1. (diff) | |
download | wordpress-fc0a79914946dac00ccd51b1aacffe267de7210e.tar.xz wordpress-fc0a79914946dac00ccd51b1aacffe267de7210e.zip |
Merging upstream version 6.6.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/blocks/query-pagination-previous.php')
-rw-r--r-- | wp-includes/blocks/query-pagination-previous.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wp-includes/blocks/query-pagination-previous.php b/wp-includes/blocks/query-pagination-previous.php index b49130a..1592f0a 100644 --- a/wp-includes/blocks/query-pagination-previous.php +++ b/wp-includes/blocks/query-pagination-previous.php @@ -8,6 +8,8 @@ /** * Renders the `core/query-pagination-previous` block on the server. * + * @since 5.8.0 + * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP_Block $block Block instance. @@ -61,7 +63,7 @@ function render_block_core_query_pagination_previous( $attributes, $content, $bl ) ) { $p->set_attribute( 'data-wp-key', 'query-pagination-previous' ); $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(); } @@ -72,6 +74,8 @@ function render_block_core_query_pagination_previous( $attributes, $content, $bl /** * Registers the `core/query-pagination-previous` block on the server. + * + * @since 5.8.0 */ function register_block_core_query_pagination_previous() { register_block_type_from_metadata( |