WordPress.org

Make WordPress Core

Opened 2 months ago

#49408 new enhancement

Why is the action wp_ajax_wp_link_ajax not using wp_send_json()

Reported by: stephanh Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.3.2
Component: General Keywords:
Focuses: coding-standards Cc:

Description

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

Attachments (1)

49408.patch (382 bytes) - added by stephanh 2 months ago.

Download all attachments as: .zip

Change History (1)

@stephanh
2 months ago

Note: See TracTickets for help on using tickets.