[wp-trac] [WordPress Trac] #18302: Improve child theme file inheritance by introducing `theme_url()` to locate a file URI
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 6 12:26:18 UTC 2012
#18302: Improve child theme file inheritance by introducing `theme_url()` to locate
a file URI
-------------------------------------------------+-------------------------
Reporter: johnbillion | Owner: westi
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 3.5
Component: Template | Version:
Severity: normal | Resolution:
Keywords: has-patch westi-likes needs-unit- |
tests |
-------------------------------------------------+-------------------------
Comment (by Otto42):
I agree with scribu here, that shouldn't be a viable use case. If you want
to do that sort of thing, then you should properly enqueue the script. A
child theme can dequeue your script and enqueue their own on the
after_setup_theme hook if they want to do so.
If you include support for GET variables, then somebody most certainly
*will* use it that way, even when they definitely should not be. And then
we'll have to add new checks to theme-check, and new rules to prevent
people from using it incorrectly...
No, limit the scope back to files only. If somebody does it wrong, then
they should get wrong results.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18302#comment:50>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list