[buddypress-trac] [BuddyPress] #4846: Theme compat is overaggressive in loading its files, especially JS
buddypress-trac
noreply at wordpress.org
Sun Feb 24 11:23:15 UTC 2013
#4846: Theme compat is overaggressive in loading its files, especially JS
-----------------------------------+------------------
Reporter: boonebgorges | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 1.7
Component: Theme | Version: 1.7
Severity: critical | Resolution:
Keywords: 2nd-opinion has-patch |
-----------------------------------+------------------
Comment (by imath):
I ran some tests with 3 "standalone BuddyPress" themes (1 free and 2
premiums) :
- Only one had the add_theme_support( 'buddypress' ) in his functions.php
file
- 2 were using the identifier 'dtheme-ajax-js' to enqueue _inc/global.js,
the other was using 'bp-js' to enqueue _inc/global.js
I confirm my last comment : adding "add_theme_support( 'buddypress' );"
solves the trouble for each theme
I confirm the warning message (4846.01.patch) is only fired if the
priority of the bp_enqueue_script hook is later than the one used by the
theme to enqueue his 'dtheme-ajax-js'.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4846#comment:7>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list