[wp-trac] [WordPress Trac] #55304: Remove error logging in sanitize_post

WordPress Trac noreply at wordpress.org
Thu Mar 3 11:38:01 UTC 2022

#55304: Remove error logging in sanitize_post
 Reporter:  legalweb           |      Owner:  (none)
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  5.9.1
 Severity:  normal             |   Keywords:
  Focuses:                     |
 There is a error_log call in the method sanitize_post in post.php which is
 not needed in generall. it only spams the debug.log file

 foreach ( array_keys( get_object_vars( $post ) ) as $field ) {
                         error_log("sanitize_post_field(field: ".$field.",
                         $post->$field = sanitize_post_field( $field,
 $post->$field, $post->ID, $context );

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

More information about the wp-trac mailing list