[wp-trac] [WordPress Trac] #39732: Allowing wp_update_comment() to return WP_Error
    WordPress Trac 
    noreply at wordpress.org
       
    Sun Jun 25 07:00:57 UTC 2017
    
    
  
#39732: Allowing wp_update_comment() to return WP_Error
------------------------------------------+--------------------
 Reporter:  enrico.sorcinelli             |       Owner:
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  4.8.1
Component:  Comments                      |     Version:  4.8
 Severity:  normal                        |  Resolution:
 Keywords:  has-unit-tests needs-refresh  |     Focuses:
------------------------------------------+--------------------
Comment (by enrico.sorcinelli):
 I just documented that returning a `WP_Error` value from
 `wp_update_comment_data` filter will shortcircuit updating and allow
 skipping further processing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39732#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list