Skip to content

Commit ca0435c

Browse files
Coding Standards: Remove unnecessary isset() from xmlrpc.php.
This removes a redundant `isset( $HTTP_RAW_POST_DATA )` from `xmlrpc.php`, as the variable is already set in the code block immediately preceding the affected line. Follow-up to [3498], [5445], [47926]. Props justlevine. See #52217. git-svn-id: https://develop.svn.wordpress.org/trunk@59376 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8f42bad commit ca0435c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/xmlrpc.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
}
2323

2424
// Fix for mozBlog and other cases where '<?xml' isn't on the very first line.
25-
if ( isset( $HTTP_RAW_POST_DATA ) ) {
26-
$HTTP_RAW_POST_DATA = trim( $HTTP_RAW_POST_DATA );
27-
}
25+
$HTTP_RAW_POST_DATA = trim( $HTTP_RAW_POST_DATA );
2826
// phpcs:enable
2927

3028
/** Include the bootstrap for setting up WordPress environment */

0 commit comments

Comments
 (0)