[theme-reviewers] A question about Automated Theme Scanning

Jon Cave jon at lionsgoroar.co.uk
Sat Mar 26 12:01:04 UTC 2011


On Sat, Mar 26, 2011 at 11:48 AM, Justice <justice360 at gmail.com> wrote:
> I just tried to upload a newer version of my theme SimpleDark (v1.2.11) but
> the automated theme scanning told be that "wp_enqueue_script(
> 'comment-reply' )" is now required so the theme check failed. But actually I
> had modified and integrated that script file into my own script because the
> original script doesn't provide the animations I need in my theme. I kept
> all the original functionalities but just added those animations. I
> explained that in this ticket and the reviewer told me to leave a note in my
> next version ticket which I kept doing for my last a few updates
> (v1.2.7~1.2.10). So now how can I get through the automated theme scanning?
> I can include "wp_enqueue_script( 'comment-reply' )" and unregister it but
> that makes no sense.

Assuming overriding the JavaScript is allowed...

Rather than re-registering and enqueuing in one step you could call
wp_register_script() (just replace your current call to
wp_enqueue_script with that leaving the arguments the same) followed
by wp_enqueue_script('comment-reply'). This should be allowed through
the theme check as it will now match the closing parenthesis properly.

- Jon


More information about the theme-reviewers mailing list