[wp-trac] [WordPress Trac] #40568: Add an action in WP_Error::add()

WordPress Trac noreply at wordpress.org
Fri Sep 11 19:19:17 UTC 2020

#40568: Add an action in WP_Error::add()
 Reporter:  Shelob9           |       Owner:  johnbillion
     Type:  enhancement       |      Status:  reviewing
 Priority:  normal            |   Milestone:  5.6
Component:  General           |     Version:  2.1
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:

Comment (by TimothyBlynJacobs):

 What's changed since #28319?

 I'm also worried about the cost of the `wp_error_checked` hook. Almost
 every function invocation in the REST API checks for `is_wp_error()`. This
 could easily wind up being called hundreds of times in a request. And once
 batching lands, thousands.

Ticket URL: <https://core.trac.wordpress.org/ticket/40568#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list