Skip to content

Commit

Permalink
Coding Standards: Remove unnecessary isset() from xmlrpc.php.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
SergeyBiryukov committed Nov 8, 2024
1 parent 8f42bad commit ca0435c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/xmlrpc.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
}

// 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 );
}
$HTTP_RAW_POST_DATA = trim( $HTTP_RAW_POST_DATA );
// phpcs:enable

/** Include the bootstrap for setting up WordPress environment */
Expand Down

0 comments on commit ca0435c

Please sign in to comment.