[wp-trac] [WordPress Trac] #25030: Overlapping upload paths with multiple networks
WordPress Trac
noreply at wordpress.org
Wed Aug 14 23:50:27 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 ddean):
Replying to [comment:4 jeremyfelt]:
> [attachment:25030.diff] introduces `is_main_network()` and makes use of
it in `wp_upload_dir()` to avoid overlapping upload paths.
Awesome patch! That is really handy and should work seamlessly on most
existing installs.
It does lock `SITE_ID_CURRENT_SITE` into designating the primary network,
though, which is somewhat at odds with its name.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25030#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list