Skip to:
Content

BuddyPress.org

Ticket #821: patch_bp_core_add_ajax_js.patch

File patch_bp_core_add_ajax_js.patch, 628 bytes (added by geekbay, 16 years ago)

Patch for bp_core_add_ajax_js()

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

     
    2828        global $bp;
    2929       
    3030        echo
    31 '<script type="text/javascript">var ajaxurl = "' . $bp->root_domain . str_replace( 'index.php', 'wp-load.php', $_SERVER['SCRIPT_NAME'] ) . '";</script>
     31'<script type="text/javascript">var ajaxurl = "' . trim($bp->root_domain,'/') . '/' . str_replace( 'index.php', 'wp-load.php', basename($_SERVER['SCRIPT_NAME']) ) . '";</script>
    3232';
    3333}
    3434add_action( 'wp_head', 'bp_core_add_ajax_js' );