[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
Wed Dec 16 19:30:24 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                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  coding-standards
-------------------------------------+-------------------------------
Changes (by sabernhardt):

 * keywords:  has-patch => has-patch needs-testing


Comment:

 This could use some testing by someone who understands it better than I do
 :)

 Next time, please create a patch from the root directory, but
 [attachment:"49408.patch"] does apply to src.

 The code for the `wp_ajax_wp_link_ajax` was added in 3.1
 (changeset:16459), and `wp_send_json` was created for 3.5. So that's
 likely why it is not used yet.

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


More information about the wp-trac mailing list