Opened 7 years ago
Closed 22 months ago
#41720 closed enhancement (wontfix)
Give a path where VCS data can be stored
Reported by: | screamingdev | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | close |
Focuses: | Cc: |
Description
As a developer
I want to put data in my VCS
so that any developer can access this files.
- Currently wp-content/uploads is something no one wants in his VCS.
- Storing everything in wp-content is a complete mess.
- We could allow a messy folder in something like "wp-content/data".
If this becomes a preset in WordPress
and rule of thumb, then I am sure that most installs will become cleaner
and easier to maintain.
What plugins currently do is a complete mess. As a develop I don't want to enter the wp-content directory
and find a list of storage dir for each single plugin.
I just like to see:
- plugins/
- themes/
- languages/
- the theme compat thingy/
- data/
- uploads/
- index.php
This is already enough.
Change History (3)
#2
@
4 years ago
@brutalenemy666 this is the thing that I want to avoid. The uploads-directory is for uploads.
What's missing is a thing like "wp-content/data" or else where plugins can store their shit.
Right now there is no proper location of other data than the uploaded ones.
Where does a plugin store it's own cache or whatever files?
wp-content is no solution either IMHO:
wp-content/my-plugin-floods-this
wp-content/mine-too
wp-content/premium-advanced-file-storage-mess
(and 40 more)
This sounds like a plugin solution.
You can achieve that by using the media hooks.
Please refer to
wp_upload_bits
.https://core.trac.wordpress.org/browser/tags/4.8/src/wp-includes/functions.php#L2100