Opened 10 years ago
Closed 10 years ago
#40224 closed defect (bug) (fixed)
Twenty Seventeen: navigation.js should be enqueued with jQuery as dependency
| Reported by: | chesio | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7.4 |
| Component: | Bundled Theme | Version: | 4.7 |
| Severity: | normal | Keywords: | has-patch fixed-major |
| Cc: | Focuses: |
Description
Hi,
I run into an "jQuery is not defined" issue with Twenty Seventeen when I try to re-queue jQuery into footer, because /assets/js/navigation.js is enqueued without jQuery as dependency.
Fix is simple, I've attached a patch.
Cheers,
Česlav
Attachments (2)
Change History (8)
#1
@
10 years ago
- Keywords has-patch needs-refresh added
- Milestone Awaiting Review → 4.7.4
- Version trunk → 4.7
#2
@
10 years ago
- Keywords needs-refresh removed
Hi @peterwilsoncc,
Thanks for pointing that out: refreshed patch attached.
This ticket was mentioned in Slack in #core by swissspidy. View the logs.
10 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@chesio,
Thanks for providing the patch.
Although the patch works, it doesn't meet the WordPress PHP coding standards which require spaces inside the brackets, ie
array( 'jquery' ). The coding standards are in place to make reading the code easier for future developers.I've marked the patch as needing a refresh and to be fixed in the next release.