Skip to content

Commit 1b6b4aa

Browse files
dingo-djrfnl
andauthored
Update wordpress-coding-standards/php.md
Co-authored-by: Juliette <663378+jrfnl@users.noreply.github.com>
1 parent 01a7e76 commit 1b6b4aa

File tree

1 file changed

+1
-1
lines changed
  • wordpress-coding-standards

1 file changed

+1
-1
lines changed

wordpress-coding-standards/php.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ Unless absolutely necessary, loose comparisons should not be used, as their beha
521521
Correct:
522522

523523
```php
524-
if ( 0 === strpos( 'WordPress', 'foo' ) ) {
524+
if ( 0 === strpos( $text, 'WordPress' ) ) {
525525
echo esc_html__( 'Yay WordPress!' );
526526
}
527527
```

0 commit comments

Comments
 (0)