[wp-trac] [WordPress Trac] #30797: New function for parent theme stylesheet uri

WordPress Trac noreply at wordpress.org
Sat Dec 20 23:21:44 UTC 2014


#30797: New function for parent theme stylesheet uri
----------------------------+------------------------------
 Reporter:  grapplerulrich  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Themes          |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by greenshady):

 Replying to [comment:4 grapplerulrich]:
 > What requirement do you mean? It is optional to use the function.

 The requirement you mentioned above.  If it's optional to use the
 function, there's no need for a change in the theme review requirements
 and you can simply ignore everything I've written.

 > One reason why I don't like the method you mentioned is that the handle
 switches when activating the child theme.

 You can use whatever handle you want with both methods.  That's really up
 to the theme author.

 > The second reason is that it does not work when you want to include a
 second stylesheet after the main stylesheet like this:

 Loading a second stylesheet works perfectly fine.  I do it all the time.
 The code you posted works for loading all three stylesheets.  You can mix
 them up, load them in whatever order, define dependencies, or just do it
 however you want.

 > Do you know of any plugins hooking into `stylesheet_uri`?

 I have coded one (not in the repo) that I use on personal and client
 projects.  I've seen at least one theme that uses the hook come through
 the theme review process.

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


More information about the wp-trac mailing list