[wp-trac] [WordPress Trac] #10204: Switch to using isset and typed
comparison rather than empty
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 18 09:21:49 GMT 2009
#10204: Switch to using isset and typed comparison rather than empty
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version: 2.8
Severity: normal | Keywords:
-------------------------------+--------------------------------------------
There are multitudes of areas in WP where we're using empty to test for a
variable, and where we'd be better of testing for isset($var) && $var !==
false instead.
It is a tad bit faster, and it prevents bugs along the lines of #10203
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10204>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list