[wp-trac] [WordPress Trac] #37447: Remove redundant `is_multisite()` checks in network admin templates
WordPress Trac
noreply at wordpress.org
Tue Sep 27 15:38:50 UTC 2016
#37447: Remove redundant `is_multisite()` checks in network admin templates
----------------------------+-------------------------
Reporter: flixos90 | Owner: jeremyfelt
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.7
Component: Administration | Version: 3.1
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: multisite
----------------------------+-------------------------
Changes (by jeremyfelt):
* owner: => jeremyfelt
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"38657"]:
{{{
#!CommitTicketReference repository="" revision="38657"
Multisite: Remove redundant `is_multisite()` checks in network admin
templates.
`wp-admin/network/admin.php` is required by all of the individual network
templates and begins with an `is_multisite()` check of its own. Because of
this, we can remove the 26 other checks in the individual templates.
Props flixos90.
Fixes #37447.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37447#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list