[wp-trac] [WordPress Trac] #21553: Remove dupe/deprecated code from sites.php
WordPress Trac
wp-trac at lists.automattic.com
Mon Aug 20 17:24:08 UTC 2012
#21553: Remove dupe/deprecated code from sites.php
----------------------------+------------------
Reporter: wonderboymusic | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.5
Component: Multisite | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------
Comment (by nacin):
Replying to [comment:3 kawauso]:
> Any reason to be using strict comparison in the `$doaction` comparisons?
Switches use loose comparison (http://php.net/manual/en/control-
structures.switch.php), so you could have an action argument that was
capitalised and would go to the correct case, but fail in the strict
comparison.
Loose comparisons are not case-insensitive.
{{{
var_dump( 'apple' == 'APPLE', 'apple' === 'APPLE' );
// bool(false)
// bool(false)
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21553#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list