[theme-reviewers] Theme Check: enqueuing 'comment-reply' as a dependency fails the theme

Otto otto at ottodestruct.com
Wed Jul 13 16:42:55 UTC 2011


Lance,

Where's the code that you wanted to use instead? I can adjust
theme-check to account for that method as well if I can see the
desired code.

-Otto



On Tue, Jul 12, 2011 at 6:36 PM, Lance Willett <nanobar at gmail.com> wrote:
> Otto and Simon,
> The P2 theme adds 'comment-reply' as a dependency to the theme's main
> JS file, using wp_enqueue_script(). That makes it fail the theme
> check, both in the plugin, and in the Extend ZIP uploader.
>
> --
> REQUIRED: Could not find wp_enqueue_script( 'comment-reply' ). See:
> Migrating Plugins and Themes to 2.7/Enhanced Comment Display
>
>  <?php if ( is_singular() ) wp_enqueue_script( "comment-reply" ); ?>
> --
>
> Could you update the check to allow enqueuing it as a dependency instead?
>
> (I added it the long-hand way for now to get the latest version up.)
>
> Thanks,
> Lance
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>


More information about the theme-reviewers mailing list