Check if HTTP_RAW_POST_DATA is set to avoid undefined var warning. Props Juergen. fixes #2350

git-svn-id: https://develop.svn.wordpress.org/trunk@3498 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-01-30 21:19:44 +00:00
parent d9f55997b3
commit 24e69f293f
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,8 @@ define('XMLRPC_REQUEST', true);
$_COOKIE = array();
# fix for mozBlog and other cases where '<?xml' isn't on the very first line
$HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA);
if ( isset($HTTP_RAW_POST_DATA) )
$HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA);
include('./wp-config.php');