mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
Themes: add wp_get_remote_theme_patterns function.
Adds a new public function, `wp_get_remote_theme_patterns` to query the `patterns` datum from `theme.json` and substitutes current usage of private APIs. Props ntsekouras, poena, audrasjb. Fixes #58460 git-svn-id: https://develop.svn.wordpress.org/trunk@55926 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -287,7 +287,7 @@ function _register_remote_theme_patterns() {
|
||||
return;
|
||||
}
|
||||
|
||||
$pattern_settings = WP_Theme_JSON_Resolver::get_theme_data()->get_patterns();
|
||||
$pattern_settings = wp_get_remote_theme_patterns();
|
||||
if ( empty( $pattern_settings ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user