From 5d3fba37f2257faf0b30e743ac025e928ae16920 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 28 Jul 2015 12:17:26 +0000 Subject: [PATCH] XML-RPC: Don't rely on `include_path` to include files, use `dirname()` instead. See #17092. Built from https://develop.svn.wordpress.org/trunk@33459 git-svn-id: http://core.svn.wordpress.org/trunk@33426 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- xmlrpc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index a3b3abaffe..d78c1e7f80 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-beta4-33458'; +$wp_version = '4.3-beta4-33459'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/xmlrpc.php b/xmlrpc.php index 9c663820e0..ad68921cdd 100644 --- a/xmlrpc.php +++ b/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);