[theme-reviewers] Bundling libraries and prefixing

Rohit Tripathi rohitink at live.com
Thu Feb 27 14:35:49 UTC 2014


It should be 
wp enqueue_script( 'themename-nivo-slider', ... );

As the rule states, all theme defined hooks/functions should be properly prefixed.

> Date: Thu, 27 Feb 2014 08:32:38 -0600
> From: kovshenin at gmail.com
> To: theme-reviewers at lists.wordpress.org
> Subject: [theme-reviewers] Bundling libraries and prefixing
> 
> Quick question.
> 
> If a theme bundled the Twitter Bootstrap library, or Nivo Slider, or
> jQuery Colorbox, should it prefix the wp_enqueue_script/style handles
> with the theme name, or should it use a generic name?
> 
> wp_enqueue_script( 'nivo-slider', ... );
> 
> vs
> 
> wp enqueue_script( 'themename-nivo-slider', ... );
> 
> Thanks!
> 
> -- 
> Konstantin
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140227/25171cf5/attachment.html>


More information about the theme-reviewers mailing list