Changeset 31195 for trunk/src/wp-includes/comment.php
- Timestamp:
- 01/16/2015 02:38:30 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r31172 r31195 2206 2206 return 0; 2207 2207 } 2208 2209 // Make sure that the comment post ID is valid (if specified). 2210 if ( isset( $commentarr['comment_post_ID'] ) && ! get_post( $commentarr['comment_post_ID'] ) ) { 2211 return 0; 2212 } 2213 2208 2214 // Escape data pulled from DB. 2209 2215 $comment = wp_slash($comment); … … 2240 2246 $comment_ID = $data['comment_ID']; 2241 2247 $comment_post_ID = $data['comment_post_ID']; 2242 $keys = array( 'comment_ content', 'comment_author', 'comment_author_email', 'comment_approved', 'comment_karma', 'comment_author_url', 'comment_date', 'comment_date_gmt', 'comment_type', 'comment_parent', 'user_id' );2248 $keys = array( 'comment_post_ID', 'comment_content', 'comment_author', 'comment_author_email', 'comment_approved', 'comment_karma', 'comment_author_url', 'comment_date', 'comment_date_gmt', 'comment_type', 'comment_parent', 'user_id' ); 2243 2249 $data = wp_array_slice_assoc( $data, $keys ); 2244 2250 $rval = $wpdb->update( $wpdb->comments, $data, compact( 'comment_ID' ) );
Note: See TracChangeset
for help on using the changeset viewer.