From 045b72564b35666032ffc384b1a9a656527af16b Mon Sep 17 00:00:00 2001 From: oandregal Date: Thu, 22 Jun 2023 07:16:19 +0000 Subject: [PATCH] Rename `wp_get_remote_patterns` to `wp_get_theme_directory_pattern_slugs`. Props dd32, ntsekouras. Fixes #58460. Built from https://develop.svn.wordpress.org/trunk@55983 git-svn-id: http://core.svn.wordpress.org/trunk@55495 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/block-patterns.php | 2 +- wp-includes/global-styles-and-settings.php | 2 +- wp-includes/version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/block-patterns.php b/wp-includes/block-patterns.php index 202bb4bde9..e93c406191 100644 --- a/wp-includes/block-patterns.php +++ b/wp-includes/block-patterns.php @@ -287,7 +287,7 @@ function _register_remote_theme_patterns() { return; } - $pattern_settings = wp_get_remote_theme_patterns(); + $pattern_settings = wp_get_theme_directory_pattern_slugs(); if ( empty( $pattern_settings ) ) { return; } diff --git a/wp-includes/global-styles-and-settings.php b/wp-includes/global-styles-and-settings.php index 4c016930b7..81fc9679c6 100644 --- a/wp-includes/global-styles-and-settings.php +++ b/wp-includes/global-styles-and-settings.php @@ -436,6 +436,6 @@ function wp_clean_theme_json_cache() { * * @return string[] */ -function wp_get_remote_theme_patterns() { +function wp_get_theme_directory_pattern_slugs() { return WP_Theme_JSON_Resolver::get_theme_data( array(), array( 'with_supports' => false ) )->get_patterns(); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 4dc22d0a42..71a2e09609 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-55982'; +$wp_version = '6.3-alpha-55983'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.