[wp-trac] [WordPress Trac] #39323: Twenty Seventeen: wp_resource_hints when enqueue custom fonts in child theme

WordPress Trac noreply at wordpress.org
Tue Dec 20 20:32:39 UTC 2016


#39323: Twenty Seventeen: wp_resource_hints when enqueue custom fonts in child
theme
-------------------------------+------------------------------
 Reporter:  sami.keijonen      |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Bundled Theme      |     Version:  4.7
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by sami.keijonen):

 > Maybe its just system fonts the theme is after so this function or a
 themer's knowledge of it being there isn't needed

 My thoughts also. But I also try not to repeat the same functions in the
 child theme in case I do use Google fonts.

 What if we add some kind of "standard" handle for child themes like this:

 `wp_style_is( 'twentyseventeen-fonts', 'queue' ) || wp_style_is(
 'twentyseventeen-child-fonts', 'queue' )`

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


More information about the wp-trac mailing list