[buddypress-trac] [BuddyPress] #2942: bp-default enqueues script in global scope
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Sat Dec 11 21:43:15 UTC 2010
#2942: bp-default enqueues script in global scope
--------------------------+-------------------------------------------------
Reporter: boonebgorges | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version:
Keywords: |
--------------------------+-------------------------------------------------
The WP Codex says that wp_enqueue_script() should be hooked to init:
http://codex.wordpress.org/Function_Reference/wp_enqueue_script
bp-default does not do it this way - it's not hooked to anything. That
means it gets loaded way early in the head. That might be intentional, but
it also means that it's nigh impossible for plugins to interact with that
js in any non-hackish way. See http://buddypress.org/community/groups/bp-
tinymce/forum/topic/bp-tinymce/#post-81996
We should investigate whether bp-default can be brought into compliance.
--
Ticket URL: <http://trac.buddypress.org/ticket/2942>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list