[wp-trac] [WordPress Trac] #25030: Overlapping upload paths with multiple networks

WordPress Trac noreply at wordpress.org
Thu Aug 15 16:03:53 UTC 2013


#25030: Overlapping upload paths with multiple networks
--------------------------+------------------
 Reporter:  ddean         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.7
Component:  Multisite     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by nacin):

 I don't really have a problem with keeping things limited to
 is_main_network() for now. Sure, we could add get_primary_network_id(),
 but its usefulness is also extremely limited at this time.

 `is_multi_network()` would probably make sense when we actually have
 better overall support for multiple networks. Un-breaking upload paths is,
 I think, different from actually redoing a lot of the
 multisite/network/subdirectory/subdomain/mapping paradigms and then
 formally introducing new concepts then.

 Side note, little trick, rather than doing a COUNT, just do: `SELECT id
 FROM $wpdb->site LIMIT 2` then see whether you get back merely one row, or
 two. We do this in is_multi_author() too.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25030#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list