[wp-trac] [WordPress Trac] #38247: Use `is_main_site()` to determine whether to redirect network/user admin requests

WordPress Trac noreply at wordpress.org
Thu Oct 6 16:57:16 UTC 2016


#38247: Use `is_main_site()` to determine whether to redirect network/user admin
requests
-----------------------------------+------------------------------
 Reporter:  flixos90               |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Networks and Sites     |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:  multisite
-----------------------------------+------------------------------
Changes (by flixos90):

 * keywords:  needs-patch => has-patch 2nd-opinion


Comment:

 [attachment:38247.diff] uses `is_main_site()` instead of the previously
 used checks.

 While the kind of comparison made by `is_main_site()` is different from
 the domain/path one, I think the results are the same. I might overlook an
 edge-case here, therefore I didn't move this ticket to 4.7 just yet. But
 we might very well be able to do it.

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


More information about the wp-trac mailing list