[wp-trac] [WordPress Trac] #39732: Allowing wp_update_comment() to return WP_Error

WordPress Trac noreply at wordpress.org
Sun Jan 29 09:52:54 UTC 2017


#39732: Allowing wp_update_comment() to return WP_Error
-------------------------------+-----------------------------
 Reporter:  enrico.sorcinelli  |      Owner:
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Comments           |    Version:  trunk
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 The new `wp_update_comment_data` filter introduced in 4.7 allows to filter
 comments data before it is updated in the database.

 The patch aims to handle `WP_Error` as the filter above return value in a
 similar manner as is done for `wp_new_comment()`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39732>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list