[wp-trac] [WordPress Trac] #44110: Removed unnecessary else's in admin.php
WordPress Trac
noreply at wordpress.org
Thu May 17 00:49:17 UTC 2018
#44110: Removed unnecessary else's in admin.php
-------------------------------------+-----------------------------
Reporter: rnaby | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Administration | Version: trunk
Severity: normal | Resolution: invalid
Keywords: has-patch needs-testing | Focuses: administration
-------------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: new => closed
* resolution: => invalid
* component: General => Administration
* milestone: Awaiting Review =>
Comment:
Hi @rnaby, welcome to WordPress Trac!
The `$typenow` global is indeed declared a few lines above, but its value
is undefined. The `else` condition makes sure the variable is always
defined, so it cannot be removed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44110#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list