[wp-trac] [WordPress Trac] #24834: wp_enqueue_script passing null for $ver produces unexpected results

WordPress Trac noreply at wordpress.org
Mon Aug 5 12:49:53 UTC 2013


#24834: wp_enqueue_script passing null for $ver produces unexpected results
--------------------------+------------------------------
 Reporter:  bobbingwide   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.5.2
 Severity:  normal        |  Resolution:
 Keywords:  close         |
--------------------------+------------------------------

Comment (by bobbingwide):

 @Pauldewouters. Please try again because I can reproduce the problem very
 easily using the oik base plugin (v2.1-alpha.0802) AND the following
 shortcode
 {{{
 [bw_jq
 src="http://www.example.com/widget.js?token=somethingcomplicated%3d%3d"]
 }}}

 @helen There should be no need to give it a proper handle name if you
 apply the fix.

 I could be invoking the JavaScript multiple times with different
 parameters.
 So, in order to make it unique, the handle name has to contain the query
 string.

 I know weird things happen. My patch is a pragmatic solution to the
 problem.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24834#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list