Edit File by line
/home/zeestwma/richards.../wp-inclu...
File: comment.php
[4000] Fix | Delete
if ( $comment_ids ) {
[4001] Fix | Delete
$comment_id_list = implode( ',', $comment_ids );
[4002] Fix | Delete
[4003] Fix | Delete
// Update the `comment_type` field value to be `comment` for the next batch of comments.
[4004] Fix | Delete
$wpdb->query(
[4005] Fix | Delete
"UPDATE {$wpdb->comments}
[4006] Fix | Delete
SET comment_type = 'comment'
[4007] Fix | Delete
WHERE comment_type = ''
[4008] Fix | Delete
AND comment_ID IN ({$comment_id_list})" // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
[4009] Fix | Delete
);
[4010] Fix | Delete
[4011] Fix | Delete
// Make sure to clean the comment cache.
[4012] Fix | Delete
clean_comment_cache( $comment_ids );
[4013] Fix | Delete
}
[4014] Fix | Delete
[4015] Fix | Delete
delete_option( $lock_name );
[4016] Fix | Delete
}
[4017] Fix | Delete
[4018] Fix | Delete
/**
[4019] Fix | Delete
* In order to avoid the _wp_batch_update_comment_type() job being accidentally removed,
[4020] Fix | Delete
* check that it's still scheduled while we haven't finished updating comment types.
[4021] Fix | Delete
*
[4022] Fix | Delete
* @ignore
[4023] Fix | Delete
* @since 5.5.0
[4024] Fix | Delete
*/
[4025] Fix | Delete
function _wp_check_for_scheduled_update_comment_type() {
[4026] Fix | Delete
if ( ! get_option( 'finished_updating_comment_type' ) && ! wp_next_scheduled( 'wp_update_comment_type_batch' ) ) {
[4027] Fix | Delete
wp_schedule_single_event( time() + MINUTE_IN_SECONDS, 'wp_update_comment_type_batch' );
[4028] Fix | Delete
}
[4029] Fix | Delete
}
[4030] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function