Skip to:
Content

BuddyPress.org

Ticket #5889: 5889.bp-default.patch

File 5889.bp-default.patch, 771 bytes (added by r-a-y, 10 years ago)
  • functions.php

     
    150150 */
    151151function bp_dtheme_enqueue_scripts() {
    152152
     153        // Enqueue various scripts
     154        wp_enqueue_script( 'bp-jquery-query' );
     155        wp_enqueue_script( 'bp-jquery-cookie' );
     156
     157        // A similar check is done in BP_Core_Members_Widget, but due to a load order
     158        // issue, we do it again here
     159        if ( is_active_widget( false, false, 'bp_core_members_widget' ) && ! is_admin() && ! is_network_admin() ) {
     160                wp_enqueue_script( 'bp-widget-members' );
     161        }
     162
    153163        // Enqueue the global JS - Ajax will not work without it
    154164        wp_enqueue_script( 'dtheme-ajax-js', get_template_directory_uri() . '/_inc/global.js', array( 'jquery' ), bp_get_version() );
    155165