Make WordPress Core

Changeset 55983


Ignore:
Timestamp:
06/22/2023 07:14:46 AM (12 months ago)
Author:
oandregal
Message:

Rename wp_get_remote_patterns to wp_get_theme_directory_pattern_slugs.

Props dd32, ntsekouras.

Fixes #58460.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-patterns.php

    r55926 r55983  
    288288    }
    289289
    290     $pattern_settings = wp_get_remote_theme_patterns();
     290    $pattern_settings = wp_get_theme_directory_pattern_slugs();
    291291    if ( empty( $pattern_settings ) ) {
    292292        return;
  • trunk/src/wp-includes/global-styles-and-settings.php

    r55959 r55983  
    437437 * @return string[]
    438438 */
    439 function wp_get_remote_theme_patterns() {
     439function wp_get_theme_directory_pattern_slugs() {
    440440    return WP_Theme_JSON_Resolver::get_theme_data( array(), array( 'with_supports' => false ) )->get_patterns();
    441441}
Note: See TracChangeset for help on using the changeset viewer.