[wp-trac] [WordPress Trac] #15622: nav-menu loading before jquery-ui-sortable

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 1 10:43:16 UTC 2010


#15622: nav-menu loading before jquery-ui-sortable
--------------------------+-------------------------------------------------
 Reporter:  Xertoz        |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Menus         |     Version:  3.0.2          
 Severity:  blocker       |    Keywords:                 
--------------------------+-------------------------------------------------
 For some reason it seems my installation uses the .sortable() function of
 jquery-ui-sortable in nav-menu before it is loaded while accessing the WP
 built-in menu manager. This means the menu manager is rendered completely
 useless.

 The produced error is:
 a.menuList.sortable is not a function
 /wp-admin/load-scripts.php?c=1&load=jquery,utils,nav-
 menu&ver=2b05c108d9016a4caa470b8edaf40953
 Line 157

 There's an easy solution to it, which is to wrap the
 (function(b){/*code*/})(); of nav-menu into
 jQuery(window).ready(function(){(function(b){/*code*/})(););

 Attaching proposed solution.

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


More information about the wp-trac mailing list