Make WordPress Core

Opened 7 years ago

Closed 22 months ago

#41720 closed enhancement (wontfix)

Give a path where VCS data can be stored

Reported by: screamingdev's profile 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)

#1 @brutalenemy666
7 years ago

  • Keywords close added

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

#2 @screamingdev
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)

#3 @JeffPaul
22 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

This is unlikely to change and keeping this open unfairly lets folks think this might happen, so I'm closing this as wontfix to more clearly state status here.

Note: See TracTickets for help on using tickets.