[wp-trac] [WordPress Trac] #22739: wp_register_script/wp_enqueue_script problem

WordPress Trac noreply at wordpress.org
Tue Dec 4 20:46:26 UTC 2012


#22739: wp_register_script/wp_enqueue_script problem
-------------------------------+------------------------------
 Reporter:  tigusigalpa        |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.4.2
 Severity:  minor              |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by tigusigalpa):

 Replying to [comment:2 SergeyBiryukov]:
 > Could not reproduce. My steps:
 >
 > 1. Install Len Slider 1.2.
 > 2. Create a slider with `nemo_target` skin.
 > 3. Insert the slider into a post.
 > 4. View the post.
 > 5. `nemo-target-skin.js` is properly enqueued after jQuery and jQuery
 UI.
 >
 > Can you provide an example code to reproduce the issue directly on a
 clean install?
 Yes, because I divided scripts in foreach loop and known-handles (jquery,
 jquery-ui): known in header, dynamic in footer, if you can to do on Len
 Slider: '''len-slider/lib/lenslider.class.php:331''' - remove last 2
 parameters ''', false, true''' and scripts from loop will be before
 jquery-ui. I dont want to divide like i do, but enqueue in foreach loop
 makes scripts before jquery-ui.

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


More information about the wp-trac mailing list