Skip to:
Content

BuddyPress.org

Ticket #3047: 3047.patch

File 3047.patch, 666 bytes (added by johnpbloch, 14 years ago)

If jQuery hasn't been enqueued, do so. If it hasn't been printed, do so.

  • bp-core/bp-core-cssjs.php

     
    6262
    6363        if ( is_multisite() && $current_blog->blog_id != BP_ROOT_BLOG )
    6464                return false;
     65        if( !wp_script_is( 'jquery' ) )
     66                wp_enqueue_script('jquery');
     67        if( !wp_script_is( 'jquery', 'done' ) )
     68                wp_print_scripts('jquery');
    6569?>
    6670
    6771        <script type="text/javascript"> jQuery(document).ready( function() { jQuery("a.confirm").click( function() { if ( confirm( '<?php _e( 'Are you sure?', 'buddypress' ) ?>' ) ) return true; else return false; }); });</script>