[wp-trac] [WordPress Trac] #36271: Trigger _doing_it_wrong if wp_send_json is used on a REST API request

WordPress Trac noreply at wordpress.org
Tue Jul 7 09:54:42 UTC 2020


#36271: Trigger _doing_it_wrong if wp_send_json is used on a REST API request
-------------------------+---------------------------
 Reporter:  rmccue       |       Owner:  spacedmonkey
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  5.5
Component:  REST API     |     Version:  4.4
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+---------------------------

Comment (by SergeyBiryukov):

 In [changeset:"48367" 48367]:
 {{{
 #!CommitTicketReference repository="" revision="48367"
 REST API: Correct the check for `$version` argument in
 `rest_handle_doing_it_wrong()`.

 Move `WP_REST_Response` and `WP_Error` class names out of the translatable
 string.

 Follow-up to [48327], [48361].

 See #36271.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/36271#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list