Ticket #5889: 5889.bp-default.patch
File 5889.bp-default.patch, 771 bytes (added by , 9 years ago) |
---|
-
functions.php
150 150 */ 151 151 function bp_dtheme_enqueue_scripts() { 152 152 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 153 163 // Enqueue the global JS - Ajax will not work without it 154 164 wp_enqueue_script( 'dtheme-ajax-js', get_template_directory_uri() . '/_inc/global.js', array( 'jquery' ), bp_get_version() ); 155 165