Skip to:
Content

BuddyPress.org

Changeset 3533


Ignore:
Timestamp:
12/17/2010 09:04:24 PM (14 years ago)
Author:
djpaul
Message:

Fix message compose autocomplete when WP is installed in a subdirectory. Fixes #2556, props r-a-y.

File:
1 edited

Legend:

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

    r3477 r3533  
    3939
    4040function messages_autocomplete_init_jsblock() {
    41     global $bp;
    4241?>
    4342    <script type="text/javascript">
    4443        jQuery(document).ready(function() {
    4544            var acfb =
    46             jQuery("ul.first").autoCompletefb({urlLookup:'<?php echo $bp->root_domain . str_replace( 'index.php', 'wp-load.php', $_SERVER['SCRIPT_NAME'] ) ?>'});
     45            jQuery("ul.first").autoCompletefb({urlLookup:'<?php echo site_url( 'wp-load.php' ) ?>'});
    4746
    4847            jQuery('#send_message_form').submit( function() {
Note: See TracChangeset for help on using the changeset viewer.