[wp-testers] Enqueue script if shortcode exist

John Blackbourn johnbillion+wp at gmail.com
Sun Jun 6 17:01:05 UTC 2010


On Sun, Jun 6, 2010 at 4:45 PM, Lox <lox.dev at knc.nc> wrote:
> Thks guys. I will use that method.
>
> But I think that this footer script should be added to Twenty Ten theme, so
> that plugin developers can make use of that feature and thus prevent useless
> loading of scripts on every page.

The problem isn't with Twenty Ten, it's because wp_print_scripts()
isn't called in the wp_footer hook, when ideally it should, to allow
footer scripts to be queued and output just as easily as header
scripts.

Here's the ticket: http://core.trac.wordpress.org/ticket/11944


More information about the wp-testers mailing list