Skip to:
Content

BuddyPress.org

Ticket #4846: 4846.01.patch

File 4846.01.patch, 935 bytes (added by boonebgorges, 12 years ago)
  • bp-templates/bp-legacy/buddypress-functions.php

    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 { 
    231231         */
    232232        public function enqueue_scripts() {
    233233
     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
    234240                // LTR or RTL
    235241                $file = 'js/buddypress.js';
    236242