[wp-trac] [WordPress Trac] #49961: Expose the reason for failures that occur within WP-Cron functions

WordPress Trac noreply at wordpress.org
Tue Feb 2 13:48:02 UTC 2021


#49961: Expose the reason for failures that occur within WP-Cron functions
-------------------------------------------------+-------------------------
 Reporter:  johnbillion                          |       Owner:
                                                 |  johnbillion
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.7
Component:  Cron API                             |     Version:  5.1
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:
  feedback needs-dev-note                        |
-------------------------------------------------+-------------------------
Changes (by johnbillion):

 * owner:  (none) => johnbillion
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50143" 50143]:
 {{{
 #!CommitTicketReference repository="" revision="50143"
 Cron API: Introduce a `$wp_error` parameter to functions that write to the
 cron array.

 This allows the functions to return a `WP_Error` object containing more
 information in case of a problem, instead of just boolean false.

 The various `pre_` filters in these functions are also updated so they can
 return or be passed a `WP_Error` object.

 Fixes #49961
 }}}

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


More information about the wp-trac mailing list