Changeset 45607 for trunk/tests/phpunit/tests/ajax/EditComment.php
- Timestamp:
- 07/08/2019 12:55:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/EditComment.php
r42343 r45607 97 97 98 98 // Manually update the comment_post_ID, because wp_update_comment() will prevent it. 99 $wpdb-> query( "UPDATE {$wpdb->comments} SET comment_post_ID=0 WHERE comment_ID={$comment->comment_ID}");99 $wpdb->update( $wpdb->comments, array( 'comment_post_ID' => 0 ), array( 'comment_ID' => $comment->comment_ID ) ); 100 100 clean_comment_cache( $comment->comment_ID ); 101 101
Note: See TracChangeset
for help on using the changeset viewer.