mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Coding Standards: Use strict comparison in wp_get_comment_status()
.
Follow-up to [546], [2258], [5666], [47219], [47808]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. Built from https://develop.svn.wordpress.org/trunk@59826 git-svn-id: http://core.svn.wordpress.org/trunk@59168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2a72568db4
commit
6c1001fb95
@ -1762,11 +1762,11 @@ function wp_get_comment_status( $comment_id ) {
|
||||
|
||||
$approved = $comment->comment_approved;
|
||||
|
||||
if ( null == $approved ) {
|
||||
if ( null === $approved ) {
|
||||
return false;
|
||||
} elseif ( '1' == $approved ) {
|
||||
} elseif ( '1' === $approved ) {
|
||||
return 'approved';
|
||||
} elseif ( '0' == $approved ) {
|
||||
} elseif ( '0' === $approved ) {
|
||||
return 'unapproved';
|
||||
} elseif ( 'spam' === $approved ) {
|
||||
return 'spam';
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59825';
|
||||
$wp_version = '6.8-alpha-59826';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user