[wp-trac] [WordPress Trac] #49408: Why is the action wp_ajax_wp_link_ajax not using wp_send_json()

WordPress Trac noreply at wordpress.org
Tue Feb 11 16:09:10 UTC 2020


#49408: Why is the action wp_ajax_wp_link_ajax not using wp_send_json()
------------------------------+-----------------------------
 Reporter:  stephanh          |      Owner:  (none)
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  General           |    Version:  5.3.2
 Severity:  normal            |   Keywords:
  Focuses:  coding-standards  |
------------------------------+-----------------------------
 The action now returns an array with results with the header content-type
 text/html
 Should this not be application/json as achieved by the wp_send_json()
 function?

 [https://core.trac.wordpress.org/browser/tags/5.3.2/src/wp-admin/includes
 /ajax-actions.php#L1863]

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


More information about the wp-trac mailing list