[wp-trac] [WordPress Trac] #51293: Add $option Parameter to wp_send_json, wp_send_json_success and wp_send_json_error

WordPress Trac noreply at wordpress.org
Thu Sep 24 00:13:49 UTC 2020


#51293: Add $option Parameter to wp_send_json, wp_send_json_success and
wp_send_json_error
-----------------------------+-----------------------------
 Reporter:  eroraghav        |       Owner:  SergeyBiryukov
     Type:  feature request  |      Status:  reviewing
 Priority:  normal           |   Milestone:  5.6
Component:  General          |     Version:  5.5.1
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * keywords:  2nd-opinion has-patch => has-patch
 * owner:  (none) => SergeyBiryukov
 * status:  new => reviewing
 * milestone:  Awaiting Review => 5.6


Comment:

 Hi there, welcome to WordPress Trac! Thanks for the ticket and the PR.

 Since `wp_json_encode()` already has the `$options` parameter, I agree
 that being able to utilize it in these functions seems like a useful
 addition.

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


More information about the wp-trac mailing list