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

WordPress Trac noreply at wordpress.org
Thu Sep 24 23:03:54 UTC 2015


#30797: New function for parent theme stylesheet uri
----------------------------+-----------------------
 Reporter:  grapplerulrich  |       Owner:  obenland
     Type:  enhancement     |      Status:  assigned
 Priority:  normal          |   Milestone:  4.4
Component:  Themes          |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------

Comment (by greenshady):

 Replying to [comment:10 obenland]:
 > Replying to [comment:9 grapplerulrich]:
 > > I have uploaded a refreshed patch with a change to the function name
 to `get_template_stylesheet_uri()`
 >
 > Why `get_template_stylesheet_uri()` and not `get_template_uri()`?

 Both would probably cause confusion with theme authors.  It's hard enough
 explaining the differences between `get_template_directory_uri()` and
 `get_stylesheet_directory_uri()` as it is.

 Might this be a good opportunity to break away from the standard template
 vs. stylesheet terminology?

 I'd almost suggest `get_parent_stylesheet_uri()`, but this doesn't
 necessarily reflect a parent theme.

 Maybe `get_template_style_uri()`?  That wouldn't be consistent with
 `get_stylesheet_uri()` though.

 At least `get_template_uri()` would be consistent with the other function
 names, even if it seems like it's referencing the directory URI rather
 than the stylesheet.

 Hmph..I don't like any of the options.

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


More information about the wp-trac mailing list