duduweiland/buddypress-xmlrpc-receiver — pull request #2 by yuttadhammo (2013-01-18 01:30:37+00:00)
Title: Indirect access to plugin file

I was just alerted to the fact that the client needs to know the location of the php file in order to connect to the service - since the plugin directory could be anything, this makes it harder for the user to set up. Also, as per this post:

http://ottopress.com/2010/dont-include-wp-load-please/

including wp-load.php is a bad idea...

So, here is a proposed change that solves both issues - it accesses the plugin file from bp-xmlrpc-loader.php directly, which eliminates the need for calling wp-load.php. It does this by checking for a GET parameter of "bp_xmlrpc=true", as follows:

http://www.mysite.com/index.php?bp_xmlrpc=true

If this url is accessed, it will include the bp-xmlrpc.php file and exit();

The best part from my end is I can still hardcode the location and have the user only input the base site url. Please let me know what you think.