Changeset 40981 for trunk/src/wp-includes/comment.php
- Timestamp:
- 07/01/2017 01:35:38 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r40667 r40981 2127 2127 * 2128 2128 * @since 2.0.0 2129 * @since 4.9.0 Add updating comment meta during comment update. 2129 2130 * 2130 2131 * @global wpdb $wpdb WordPress database abstraction object. … … 2199 2200 2200 2201 $rval = $wpdb->update( $wpdb->comments, $data, compact( 'comment_ID' ) ); 2202 2203 // If metadata is provided, store it. 2204 if ( isset( $commentarr['comment_meta'] ) && is_array( $commentarr['comment_meta'] ) ) { 2205 foreach ( $commentarr['comment_meta'] as $meta_key => $meta_value ) { 2206 update_comment_meta( $comment_ID, $meta_key, $meta_value ); 2207 } 2208 } 2201 2209 2202 2210 clean_comment_cache( $comment_ID );
Note: See TracChangeset
for help on using the changeset viewer.