[wp-trac] [WordPress Trac] #17272: 'ver' parameter included by default in wp_enqueue_script

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 28 19:41:28 UTC 2011


#17272: 'ver' parameter included by default in wp_enqueue_script
--------------------------+-----------------------------
 Reporter:  Nordvind      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.1
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 When you register and enqueue your script, the 'ver' parameter is included
 by default, thus resulting in script load error. Of course, you can call
 wp_enqueue_script like this
 `wp_enqueue_script('mblog',plugins_url().'/mblog/mblog.js',false,null);`
 and it works fine, but I don't see the point of including 'ver=3.1.2' with
 every script.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17272>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list