Skip to content

Commit 07e5abf

Browse files
committed
avoid $HTTP_RAW_POST_DATA notices. props mgeisler and Nazgul. fixes WordPress#1494
git-svn-id: https://develop.svn.wordpress.org/branches/2.0@4306 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 70aecc1 commit 07e5abf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

xmlrpc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ function starify($string) {
5858
return str_repeat('*', $i);
5959
}
6060

61-
logIO("I", $HTTP_RAW_POST_DATA);
61+
if ( isset($HTTP_RAW_POST_DATA) )
62+
logIO("I", $HTTP_RAW_POST_DATA);
6263

6364

6465
class wp_xmlrpc_server extends IXR_Server {

0 commit comments

Comments
 (0)