Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/16/2009 09:08:38 PM (16 years ago)
Author:
apeatling
Message:

Fixes #351

File:
1 edited

Legend:

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

    r809 r855  
    11<?php
    22define('DOING_AJAX', true);
    3 require_once( preg_replace('/(.*)\/wp-content\/.*/', '\1', $_SERVER['SCRIPT_FILENAME'] ) . '/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.