[wp-trac] [WordPress Trac] #63249: Minor code and inline docs improvements in class-wp-rest-server.php
WordPress Trac
noreply at wordpress.org
Mon Oct 27 18:33:29 UTC 2025
#63249: Minor code and inline docs improvements in class-wp-rest-server.php
-------------------------------------+------------------------
Reporter: dilipbheda | Owner: audrasjb
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 6.9
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses: docs
-------------------------------------+------------------------
Comment (by khushdoms):
I’ve reviewed the latest code in class-wp-rest-server.php on trunk.
The get_json_last_error() function correctly checks only for
JSON_ERROR_NONE and returns false as expected.
The redundant empty() check has been removed as per changeset [60151].
Inline docs are consistent as well.
Looks good to mark as fixed. Thanks everyone!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63249#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list