Opened 17 years ago
Closed 13 years ago
#9409 closed enhancement (worksforme)
Mandatory setting for variable uploads_use_yearmonth_folders
| Reported by: | hspaans | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Upload | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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)
Change History (7)
#2
@
17 years ago
- Keywords mandatory upload structure removed
- Milestone Unassigned
- Resolution → invalid
- Status new → closed
#3
@
17 years ago
WPMU doesn't work that well in a shared codebase environment and doesn't meet the requirements.
#4
@
17 years ago
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.
#5
@
13 years ago
- Cc added
- Keywords has-patch removed
- Resolution invalid
- Status closed → reopened
- Version 2.7.1
I'd like to have this setting. Not because of the original ticket description, "...to make WordPress shared hosting friendly...", but because of having the ability to set both media settings for uploads via wp-config.php.
Right now we can define the uploads directory but can't define the organize uploads into folders setting.
#6
@
13 years ago
- Resolution → worksforme
- Status reopened → closed
You could always use a filter via get_option() to actually enforce a particular choice. It's not perfect, but it works just fine.
I don't think this should be a constant — we ideally want to avoid constants for non-essential stuff, and this doesn't require a constant or filesystem-level enforcement.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
why not use WPMU?