[wp-trac] [WordPress Trac] #41998: REST API: Add debug mode

WordPress Trac noreply at wordpress.org
Sun Sep 11 20:55:55 UTC 2022


#41998: REST API: Add debug mode
--------------------------+--------------------------------
 Reporter:  Viper007Bond  |       Owner:  TimothyBlynJacobs
     Type:  enhancement   |      Status:  assigned
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  rest-api
--------------------------+--------------------------------

Comment (by kadamwhite):

 Note from WCUS contributor day: @jorbin joined the table in person to
 discuss my question above. He has pointed out the issues with constants
 where you can't override them or easily get rid of a constant once you've
 added support for it, so he recommended we use the parameter-only option
 for now. A site owner who wants to enable or disable this globally can do
 so with a small filter on `rest_api_json_encode_options`.

 That said, we usually use `rest_` as the prefix, not `rest_api_`, so let's
 change that for consistency. After that, this looks solid.

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


More information about the wp-trac mailing list