Make WordPress Core

Opened 8 years ago

Closed 7 years ago

#20080 closed enhancement (worksforme)

adminmenu jquery not working when you put jquery in the footer.

Reported by: theBrettman Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3.1
Component: Menus Keywords: reporter-feedback close
Focuses: Cc:
PR Number:


maybe someone should set the menus to show on $(document).ready()? the admin bar at the top works just fine but when I put set $in_footer to true for jquery, the adminmenu's on the left don't work. says jQuery is not defined and of course we know this is because the menus initialized before jQuery loaded. plz fix, I want my jquery called in the footer.

Change History (4)

#1 @nacin
8 years ago

To confirm, are you trying to do this in the admin, or on the frontend?

#2 @scribu
8 years ago

  • Keywords reporter-feedback added
  • Type changed from defect (bug) to enhancement

#3 @azaozz
8 years ago

  • Keywords close added

Just did a (very) quick test and menus seem to work properly. The menu init is in jQuery(document).ready(). However there are few pages with JS code blocks in the HTML that throw errors.

In any case don't think we can support that in the admin as plugins may be expecting jQuery to be available early/in the header.

#4 @nacin
7 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.