[wp-trac] [WordPress Trac] #30797: New function for parent theme stylesheet uri
WordPress Trac
noreply at wordpress.org
Fri Oct 9 22:39:20 UTC 2015
#30797: New function for parent theme stylesheet uri
----------------------------+-----------------------------
Reporter: grapplerulrich | Owner: obenland
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Themes | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
----------------------------+-----------------------------
Comment (by SergeyBiryukov):
Replying to [comment:19 grapplerulrich]:
> I have uploaded a new patch. I went with returning false when a child
theme is not active is because of `wp_enqueue_style()`. The URI is not
added if it returns false.
There's no strict comparison, so an empty string would be the same as
`false` in that context.
> I am not sure how I would implement the function in a theme if it did
not return the current theme URI if a child theme was not active.
The example from comment:2 should work.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30797#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list