Rename wp_get_remote_patterns to wp_get_theme_directory_pattern_slugs.

Props dd32, ntsekouras.

Fixes #58460.



git-svn-id: https://develop.svn.wordpress.org/trunk@55983 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
André 2023-06-22 07:14:46 +00:00
parent 23f73f8430
commit 2a233f7143
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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();
}