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

WordPress Trac noreply at wordpress.org
Thu Aug 15 05:48:41 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 jeremyfelt):

 Oh wow.

 Please ignore [attachment:25030.4.diff].

 [attachment:25030.3.diff] is a temporary refresh.

 1. If PRIMARY_NETWORK_ID is not defined, and `$current_site->id` is 1,
 then we can assume 1 is the primary network and check against it.
 1. Still not entirely sure if the query for the lowest site ID should be
 stored in cache in the `is_main_network()` function? Probably, because
 this will be pretty authoritative. Even if `switch_to_blog` is used, as
 long as we store the result of the query then it shouldn't be affected.

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


More information about the wp-trac mailing list