mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-13 07:10:00 +01:00
Coding Standards: Use strict comparison in wp_new_comment_notify_postauthor()
.
Follow-up to [2894], [34106], [34250], [34545], [36119]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. Built from https://develop.svn.wordpress.org/trunk@59841 git-svn-id: http://core.svn.wordpress.org/trunk@59183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5f01118b48
commit
2c77ef11d2
@ -2421,7 +2421,7 @@ function wp_new_comment_notify_postauthor( $comment_id ) {
|
||||
}
|
||||
|
||||
// Only send notifications for approved comments.
|
||||
if ( ! isset( $comment->comment_approved ) || '1' != $comment->comment_approved ) {
|
||||
if ( ! isset( $comment->comment_approved ) || '1' !== $comment->comment_approved ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59840';
|
||||
$wp_version = '6.8-alpha-59841';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user