Skip to content

Commit 5dff254

Browse files
Coding Standards: Use strict comparison in wp-includes/pomo/plural-forms.php.
Follow-up to [41722]. Props aristath, poena, afercia, SergeyBiryukov. See #60700. git-svn-id: https://develop.svn.wordpress.org/trunk@57883 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f25ca58 commit 5dff254

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-includes/pomo/plural-forms.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,13 +320,13 @@ public function execute( $n ) {
320320
case '!=':
321321
$v2 = array_pop( $stack );
322322
$v1 = array_pop( $stack );
323-
$stack[] = $v1 != $v2;
323+
$stack[] = $v1 !== $v2;
324324
break;
325325

326326
case '==':
327327
$v2 = array_pop( $stack );
328328
$v1 = array_pop( $stack );
329-
$stack[] = $v1 == $v2;
329+
$stack[] = $v1 === $v2;
330330
break;
331331

332332
case '?:':

0 commit comments

Comments
 (0)