[wp-trac] [WordPress Trac] #49239: Prefer strict PHP comparisons over loose PHP comparisons (batch 2)
WordPress Trac
noreply at wordpress.org
Mon Jan 20 18:18:06 UTC 2020
#49239: Prefer strict PHP comparisons over loose PHP comparisons (batch 2)
-------------------------+-------------------------------
Reporter: pikamander2 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: coding-standards
-------------------------+-------------------------------
Changes (by mukesh27):
* keywords: => needs-patch
Comment:
@pikamander2 can you please update
[https://core.trac.wordpress.org/attachment/ticket/49239/comment.php.2.patch
comment.php.2.patch] patch?
{{{ if ( $comment->comment_approved != '0' ) { // if not unapproved }}}
Replace to
{{{ if ( '0' !== $comment->comment_approved ) { // if not unapproved }}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49239#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list