[wp-trac] [WordPress Trac] #58460: Add `wp_get_remote_theme_patterns` function

WordPress Trac noreply at wordpress.org
Fri Jun 16 01:18:20 UTC 2023


#58460: Add `wp_get_remote_theme_patterns` function
------------------------------+------------------------
 Reporter:  oandregal         |       Owner:  oandregal
     Type:  enhancement       |      Status:  assigned
 Priority:  normal            |   Milestone:  6.3
Component:  Themes            |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------------

Comment (by dd32):

 The name `wp_get_remote_theme_patterns()` feels a bit close to the
 `wp_remote_*()` and `wp_safe_remote_*()` methods to me.  The inclusion of
 `remote` when it's not actually performing a remote-request seems weird
 too (I get that it's to say "This returns something that needs to be
 fetched remotely")

 I would suggest that something along the lines of
 `wp_theme_required_patterns()` or `...pattern_slugs()` is maybe a little
 more understandable as to what it means? ie. `wp_` (it's a WP function)
 `theme_` (It's related to the themes component) `required_` (It might not
 be required, and rather suggested?) `pattern_slugs()` what's being queried
 for.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58460#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list