#48335 closed defect (bug) (invalid)
Yoda condition missing class-wp-rest-request.php line 337
Reported by: | 1naveengiri | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | REST API | Keywords: | |
Focuses: | rest-api, coding-standards | Cc: |
Description
Check the attached screenshot.
In class-wp-rest-request.php at line #337, the line should be
if ( 'application/json' === $content_type['value'] )
Attachments (1)
Change History (6)
#2
@
5 years ago
- Keywords reporter-feedback added
Thanks for reporting this, @1naveengiri! I can't replicate the same issue in WordPress version 5.3-RC1-46560 and in GitHub repo https://github.com/WordPress/WordPress/blob/master/wp-includes/rest-api/class-wp-rest-request.php#L339 I can't found the same issue.
Can you please check it
#3
@
5 years ago
- Resolution set to invalid
- Status changed from new to closed
Awesome, its seems fixed in WP 5.3-RC1-46560.
Thanks for checking it @mukesh27
I will close it. seems no need of it now.
Note: See
TracTickets for help on using
tickets.
https://core.trac.wordpress.org/browser/tags/5.2.4/src/wp-includes/rest-api/class-wp-rest-request.php#L337