diff --git bp-templates/bp-legacy/buddypress-functions.php bp-templates/bp-legacy/buddypress-functions.php
index 5e8ec4b..421fe08 100644
|
|
class BP_Legacy extends BP_Theme_Compat { |
231 | 231 | */ |
232 | 232 | public function enqueue_scripts() { |
233 | 233 | |
| 234 | // Check for bp-default's scripts before continuing |
| 235 | if ( wp_script_is( 'dtheme-ajax-js', 'enqueued' ) ) { |
| 236 | _doing_it_wrong( __METHOD__, __( 'The script dtheme-ajax-js has already been enqueued, preventing BuddyPress from loading its core JavaScript. If your theme provides native JS functionality for BuddyPress, please specify current_theme_supports( "buddypress" ) in your functions.php. If your theme does not support BuddyPress natively, please do not enqueue dtheme-ajax-js.', 'buddypress' ), '1.7' ); |
| 237 | return; |
| 238 | } |
| 239 | |
234 | 240 | // LTR or RTL |
235 | 241 | $file = 'js/buddypress.js'; |
236 | 242 | |