[wp-trac] [WordPress Trac] #54728: Coding Standards fixes for WP 6.0
WordPress Trac
noreply at wordpress.org
Tue Mar 29 20:47:40 UTC 2022
#54728: Coding Standards fixes for WP 6.0
----------------------------+-------------------------------
Reporter: hellofromTonya | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.0
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: coding-standards
----------------------------+-------------------------------
Comment (by jrf):
Replying to [comment:51 knutsp]:
> {{{#!php
> <?php
> 1 === $_GET['test']
> }}}
> will never evaluate to true, as `$_REQUEST` values are all strings. Keep
the loose comparison.
>
Or do a strict comparison, but compare against the right type, i.e. `'1'
=== $_GET['test']` ;-)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54728#comment:52>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list