Make WordPress Core

Changeset 59376


Ignore:
Timestamp:
11/08/2024 03:50:12 PM (6 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/xmlrpc.php

    r57752 r59376  
    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
Note: See TracChangeset for help on using the changeset viewer.