Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#9409 closed enhancement (invalid)

Mandatory setting for variable uploads_use_yearmonth_folders

Reported by: hspaans Owned by:
Priority: normal Milestone:
Component: Upload Version: 2.7.1
Severity: normal Keywords: has-patch
Cc:

Description

The reasoning behing this patch is to make WordPress shared hosting friendly by using a shared codebase and mandatory settings.

This patch overrules database parameter "uploads_use_yearmonth_folders" and removes the interface option when the following constant is set in wp-config.php:

define('WP_UPLOADS_USE_YEARMONTH_FOLDERS', false);
define('WP_UPLOADS_USE_YEARMONTH_FOLDERS', true);

Attachments (1)

wordpress-2.7.1-hspaans-1.patch (1.3 KB) - added by hspaans 4 years ago.

Download all attachments as: .zip

Change History (5)

  • Keywords has-patch added
  • Keywords mandatory upload structure removed
  • Milestone Unassigned deleted
  • Resolution set to invalid
  • Status changed from new to closed

why not use WPMU?

WPMU doesn't work that well in a shared codebase environment and doesn't meet the requirements.

oh, in that case, use the WP_CONTENT_DIR and the WP_PLUGINS_DIR urls. should do the trick. you get one content dir for all sites and a shared plugins_dir, which is what I assume you want.

Note: See TracTickets for help on using tickets.