[wp-trac] [WordPress Trac] #37447: Remove redundant `is_multisite()` checks in network admin templates

WordPress Trac noreply at wordpress.org
Sun Jul 24 19:11:48 UTC 2016


#37447: Remove redundant `is_multisite()` checks in network admin templates
----------------------------+------------------------------
 Reporter:  flixos90        |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  multisite
----------------------------+------------------------------

Comment (by swissspidy):

 Replying to [comment:4 flixos90]:
 > Replying to [comment:3 SergeyBiryukov]:
 > > Looking at [16272], I guess the checks are there just in case the one
 in `network/admin.php` gets removed at some pount  (it might be an
 oversight as well, but seems unlikely).
 >
 > Why would that file be removed? Solely for that purpose, (so that we
 don't need duplicate code) I think it would make sense to keep it.

 Not the file could be removed, but the checks in it.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37447#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list