#3047 closed defect (bug) (fixed)
jQuery not properly enqueued in all circumstances
Reported by: | johnpbloch | Owned by: | johnpbloch |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | has-patch |
Cc: |
Description
In the function bp_core_confirmation_js()
, BuddyPress echoes inline javascript with jQuery directly to the <head>
section without properly checking to make sure jQuery has been loaded. Since BuddyPress doesn't normally run without jQuery by default, this isn't generally a problem. However, if using the BP Template Pack, one has the option of turning off the default javascript and CSS. If you do that, the core confirmation script still runs without the jQuery dependency in place.
bp_core_confirmation_js()
should be checking if jQuery has been loaded, and should load it if it hasn't been. I have a working patch which I'll attach momentarily.
If jQuery hasn't been enqueued, do so. If it hasn't been printed, do so.