mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-13 07:10:00 +01:00
Coding Standards: Use strict comparison in wp_insert_comment()
.
Follow-up to [3104], [3193], [3887]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. Built from https://develop.svn.wordpress.org/trunk@59898 git-svn-id: http://core.svn.wordpress.org/trunk@59240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5961453fc3
commit
bd3842f01d
@ -2071,7 +2071,7 @@ function wp_insert_comment( $commentdata ) {
|
||||
|
||||
$id = (int) $wpdb->insert_id;
|
||||
|
||||
if ( 1 == $comment_approved ) {
|
||||
if ( 1 === $comment_approved ) {
|
||||
wp_update_comment_count( $comment_post_id );
|
||||
|
||||
$data = array();
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59897';
|
||||
$wp_version = '6.8-alpha-59898';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user