Skip to:
Content

BuddyPress.org

Changeset 4018


Ignore:
Timestamp:
02/04/2011 04:22:43 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Make sure jQuery is loaded in bp_core_confirmation_js(). This is primarily for themes that do not include jQuery independently. Fixes #3047. Props johnploch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-cssjs.php

    r3777 r4018  
    6363    if ( is_multisite() && $current_blog->blog_id != BP_ROOT_BLOG )
    6464        return false;
    65 ?>
     65
     66    if ( !wp_script_is( 'jquery' ) )
     67        wp_enqueue_script( 'jquery' );
     68
     69    if ( !wp_script_is( 'jquery', 'done' ) )
     70        wp_print_scripts( 'jquery' ); ?>
    6671
    6772    <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>
Note: See TracChangeset for help on using the changeset viewer.