diff --git src/wp-includes/comment.php src/wp-includes/comment.php
index f579e95..e70acf0 100644
|
|
function wp_update_comment($commentarr) { |
2023 | 2023 | $data = wp_array_slice_assoc( $data, $keys ); |
2024 | 2024 | $rval = $wpdb->update( $wpdb->comments, $data, compact( 'comment_ID' ) ); |
2025 | 2025 | |
| 2026 | // If metadata is provided, store it. |
| 2027 | if ( isset( $commentdata['comment_meta'] ) && is_array( $commentdata['comment_meta'] ) ) { |
| 2028 | foreach ( $commentdata['comment_meta'] as $meta_key => $meta_value ) { |
| 2029 | update_comment_meta( $comment->comment_ID, $meta_key, $meta_value, true ); |
| 2030 | } |
| 2031 | } |
| 2032 | |
2026 | 2033 | clean_comment_cache( $comment_ID ); |
2027 | 2034 | wp_update_comment_count( $comment_post_ID ); |
2028 | 2035 | /** |