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:
parent
4393f478ea
commit
74c061a480
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue