XML-RPC: Don't rely on `include_path` to include files, use `dirname()` instead.

See #17092.



git-svn-id: https://develop.svn.wordpress.org/trunk@33459 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2015-07-28 12:16:44 +00:00
parent 4393f478ea
commit 74c061a480
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ if ( isset($HTTP_RAW_POST_DATA) )
$HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA);
/** Include the bootstrap for setting up WordPress environment */
include('./wp-load.php');
include( dirname( __FILE__ ) . '/wp-load.php' );
if ( isset( $_GET['rsd'] ) ) { // http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html
header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);