[wp-trac] [WordPress Trac] #64260: Default filter `doing_it_wrong_trigger_error` for REST request cause no notice at all.

WordPress Trac noreply at wordpress.org
Mon Nov 17 19:25:36 UTC 2025


#64260: Default filter `doing_it_wrong_trigger_error` for REST request cause no
notice at all.
--------------------------+-----------------------
 Reporter:  okvee         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  7.0
Component:  REST API      |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  rest-api
--------------------------+-----------------------
Changes (by westonruter):

 * keywords:   => needs-patch
 * version:  6.8.3 => 4.4
 * milestone:  Awaiting Review => 7.0


Comment:

 The code in question was added way back in r34928
 ([https://github.com/WordPress/wordpress-
 develop/commit/b39211475d7c7fe7c56acd878dc1a18afa4dab3f b392114]) when the
 REST API was first introduced in core. The intention was for the
 deprecation message to be sent back via the `X-WP-DeprecatedFunction`
 response header. But I don't see why it can't also be sent to the error
 log.

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


More information about the wp-trac mailing list