mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-13 07:10:00 +01:00
Coding Standards: Use strict comparison in wp_delete_comment()
.
Follow-up to [3271], [47219]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. Built from https://develop.svn.wordpress.org/trunk@59852 git-svn-id: http://core.svn.wordpress.org/trunk@59194 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bbe792936c
commit
d8b45098da
@ -1528,7 +1528,7 @@ function wp_delete_comment( $comment_id, $force_delete = false ) {
|
||||
do_action( 'deleted_comment', $comment->comment_ID, $comment );
|
||||
|
||||
$post_id = $comment->comment_post_ID;
|
||||
if ( $post_id && 1 == $comment->comment_approved ) {
|
||||
if ( $post_id && '1' === $comment->comment_approved ) {
|
||||
wp_update_comment_count( $post_id );
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59851';
|
||||
$wp_version = '6.8-alpha-59852';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user