Check if HTTP_RAW_POST_DATA is set to avoid undefined var warning. Props Juergen. fixes #2350
git-svn-id: http://svn.automattic.com/wordpress/trunk@3498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f035ac9b20
commit
60ccea94fd
|
@ -6,6 +6,7 @@ define('XMLRPC_REQUEST', true);
|
|||
$_COOKIE = array();
|
||||
|
||||
# fix for mozBlog and other cases where '<?xml' isn't on the very first line
|
||||
if ( isset($HTTP_RAW_POST_DATA) )
|
||||
$HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA);
|
||||
|
||||
include('./wp-config.php');
|
||||
|
|
Loading…
Reference in New Issue