From 74c061a48047838ab39ce3fdece79c889ffe9cd5 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 28 Jul 2015 12:16:44 +0000 Subject: [PATCH] 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 --- src/xmlrpc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xmlrpc.php b/src/xmlrpc.php index 9c663820e0..ad68921cdd 100644 --- a/src/xmlrpc.php +++ b/src/xmlrpc.php @@ -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);