[wp-trac] [WordPress Trac] #23658: wp_deregister_script('jquery') and wp_enqueue('jquery-ui-dialog') dependancy Issue

WordPress Trac noreply at wordpress.org
Sat Mar 2 04:35:19 UTC 2013


#23658: wp_deregister_script('jquery') and wp_enqueue('jquery-ui-dialog')
dependancy Issue
--------------------------------+------------------------------
 Reporter:  eliddon             |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  External Libraries  |     Version:  3.5.1
 Severity:  normal              |  Resolution:
 Keywords:  reporter-feedback   |
--------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-patch => reporter-feedback


Comment:

 Related: #22739

 Could not reproduce on a clean install neither in 3.5.1 nor in 3.6-alpha.
 My steps:
 1. Made a child theme of Twenty Eleven.
 2. Copied your code into `functions.php`.
 3. jQuery UI is properly loaded after jQuery.

 In 3.5.1:
 {{{
 <script type='text/javascript'
 src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js?ver=1.9.1'></script>
 <script type='text/javascript' src='http://wordpress/wp-
 includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.9.2'></script>
 <script type='text/javascript' src='http://wordpress/wp-
 includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.9.2'></script>
 <script type='text/javascript' src='http://wordpress/wp-
 includes/js/jquery/ui/jquery.ui.mouse.min.js?ver=1.9.2'></script>
 <script type='text/javascript' src='http://wordpress/wp-
 includes/js/jquery/ui/jquery.ui.resizable.min.js?ver=1.9.2'></script>
 <script type='text/javascript' src='http://wordpress/wp-
 includes/js/jquery/ui/jquery.ui.draggable.min.js?ver=1.9.2'></script>
 <script type='text/javascript' src='http://wordpress/wp-
 includes/js/jquery/ui/jquery.ui.button.min.js?ver=1.9.2'></script>
 <script type='text/javascript' src='http://wordpress/wp-
 includes/js/jquery/ui/jquery.ui.position.min.js?ver=1.9.2'></script>
 <script type='text/javascript' src='http://wordpress/wp-
 includes/js/jquery/ui/jquery.ui.dialog.min.js?ver=1.9.2'></script>
 }}}

 In 3.6-alpha-23582:
 {{{
 <script type='text/javascript'
 src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js?ver=1.9.1'></script>
 <script type='text/javascript' src='http://trunk.wordpress/wp-
 includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.10.1'></script>
 <script type='text/javascript' src='http://trunk.wordpress/wp-
 includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.10.1'></script>
 <script type='text/javascript' src='http://trunk.wordpress/wp-
 includes/js/jquery/ui/jquery.ui.mouse.min.js?ver=1.10.1'></script>
 <script type='text/javascript' src='http://trunk.wordpress/wp-
 includes/js/jquery/ui/jquery.ui.resizable.min.js?ver=1.10.1'></script>
 <script type='text/javascript' src='http://trunk.wordpress/wp-
 includes/js/jquery/ui/jquery.ui.draggable.min.js?ver=1.10.1'></script>
 <script type='text/javascript' src='http://trunk.wordpress/wp-
 includes/js/jquery/ui/jquery.ui.button.min.js?ver=1.10.1'></script>
 <script type='text/javascript' src='http://trunk.wordpress/wp-
 includes/js/jquery/ui/jquery.ui.position.min.js?ver=1.10.1'></script>
 <script type='text/javascript' src='http://trunk.wordpress/wp-
 includes/js/jquery/ui/jquery.ui.dialog.min.js?ver=1.10.1'></script>
 }}}

 Note that `wp_print_scripts` is not the correct hook for
 `wp_enqueue_script()` on front-end, `wp_enqueue_scripts` should be used
 instead.

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


More information about the wp-trac mailing list