[wp-trac] [WordPress Trac] #48335: Yoda condition missing class-wp-rest-request.php line 337

WordPress Trac noreply at wordpress.org
Thu Oct 17 02:59:07 UTC 2019


#48335: Yoda condition missing class-wp-rest-request.php line 337
----------------------------------------+-----------------------------
 Reporter:  1naveengiri                 |      Owner:  (none)
     Type:  defect (bug)                |     Status:  new
 Priority:  normal                      |  Milestone:  Awaiting Review
Component:  REST API                    |    Version:  trunk
 Severity:  normal                      |   Keywords:  needs-patch
  Focuses:  rest-api, coding-standards  |
----------------------------------------+-----------------------------
 Check the attached screenshot.

 In class-wp-rest-request.php at line #337, the line should be

  {{{#!php

 if ( 'application/json' === $content_type['value'] )
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48335>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list