[wp-trac] [WordPress Trac] #11742: MU isn't fully compatible with custom content dir
WordPress Trac
wp-trac at lists.automattic.com
Tue Feb 2 17:25:02 UTC 2010
#11742: MU isn't fully compatible with custom content dir
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Upload | Version: 3.0
Severity: major | Keywords: multisite
-------------------------------+--------------------------------------------
Comment(by nacin):
[12926] looks good, thanks :)
Thinking we should then do the following:
- Rename wp-includes/blogs.php to wp-includes/ms-files.php.
- Copy all wp-content/blogs.php functionality to ms-files.php, and remove
blogs.php from trunk.
- At the very start of ms-files.php, check if wp-content/blogs.php
exists, if it does, include it and die(). Otherwise, let ms-files.php run
its course.
This has the benefit of:
- moving core functionality out of wp-content and into a file that can be
updated easily.
- being backwards compatible with anyone running a customized version of
blogs.php.
- being forwards compatible by allowing anyone to drop-in their own
blogs.php if they want their own file handling.
Patch to this effect coming in a bit.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11742#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list