[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 13:33:34 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:  reopened
 Priority:  normal       |   Milestone:  5.5
Component:  REST API     |     Version:  4.4
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+---------------------------
Changes (by SergeyBiryukov):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 @TimothyBlynJacobs Could you double-check comment:10?

 At a glance, checking `REST_REQUEST` seems correct to me, as the message
 is specific to REST API, but I'm not deeply familiar with the history
 here.

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


More information about the wp-trac mailing list