Skip to:
Content

BuddyPress.org

Changeset 809


Ignore:
Timestamp:
12/23/2008 03:46:13 AM (13 years ago)
Author:
apeatling
Message:

Adding support for symlink BuddyPress installs in the ajax handler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-ajax-handler.php

    r631 r809  
    11<?php
    22define('DOING_AJAX', true);
    3 require_once( preg_replace('/(.*)\/wp-content\/.*/', '\1', dirname( __FILE__ ) ) . '/wp-load.php' );
     3require_once( preg_replace('/(.*)\/wp-content\/.*/', '\1', $_SERVER['SCRIPT_FILENAME'] ) . '/wp-load.php' );
    44
    55add_filter( 'bp_uri', 'bp_core_referrer' );
Note: See TracChangeset for help on using the changeset viewer.