From f98a921c983a2ec3190fee88d8ecb84a816d64b5 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 4 Mar 2024 15:39:15 +0000 Subject: [PATCH] Interactivity API: Rename `data_wp_context()` to `wp_interactivity_data_wp_context()`. Increases clarity about where the function belongs to, bringing it in line with other related functions. After initially merging this change in [57742] and reverting it in [57743], this reintroduces it now that the Gutenberg packages have been updated accordingly in [57760]. Props swissspidy, gziolo, cbravobernal, youknowriad, ankitmaru, westonruter, luisherranz, darerodz. Fixes #60575. Built from https://develop.svn.wordpress.org/trunk@57762 git-svn-id: http://core.svn.wordpress.org/trunk@57263 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/interactivity-api/interactivity-api.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/interactivity-api/interactivity-api.php b/wp-includes/interactivity-api/interactivity-api.php index 548fcc3638..120551b7e2 100644 --- a/wp-includes/interactivity-api/interactivity-api.php +++ b/wp-includes/interactivity-api/interactivity-api.php @@ -149,7 +149,7 @@ function wp_interactivity_config( string $store_namespace, array $config = array * * Example: * - *
true, 'count' => 0 ) ); ?>> + *
true, 'count' => 0 ) ); ?>> * * @since 6.5.0 * @@ -158,7 +158,7 @@ function wp_interactivity_config( string $store_namespace, array $config = array * @return string A complete `data-wp-context` directive with a JSON encoded value representing the context array and * the store namespace if specified. */ -function data_wp_context( array $context, string $store_namespace = '' ): string { +function wp_interactivity_data_wp_context( array $context, string $store_namespace = '' ): string { return 'data-wp-context=\'' . ( $store_namespace ? $store_namespace . '::' : '' ) . ( empty( $context ) ? '{}' : wp_json_encode( $context, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP ) ) . diff --git a/wp-includes/version.php b/wp-includes/version.php index 331d1d2091..a3fb020c15 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-beta3-57761'; +$wp_version = '6.5-beta3-57762'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.