[wp-trac] [WordPress Trac] #35151: New constant `WP_CONTENT_DIR_NAME`
WordPress Trac
noreply at wordpress.org
Wed Apr 27 11:14:04 UTC 2016
#35151: New constant `WP_CONTENT_DIR_NAME`
------------------------------+-----------------------
Reporter: sebastian.pisula | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
------------------------------+-----------------------
Changes (by sebastian.pisula):
* status: closed => reopened
* resolution: wontfix =>
Comment:
I think that this will be helpful constant. I use wp cli to install
website:
{{{
core config:
dbprefix: wp_
extra-php: |
define('WP_DEBUG', 1);
define('WP_DEBUG_LOG', 1);
define('WP_DEBUG_DISPLAY', 0);
define('WP_CONTENT_DIR_NAME', 'my-wp-content');
}}}
So I want change WP_CONTENT_DIR I must change WP_CONTENT_URL. And I must
define in wp-config.php WP_SITEURL AND WP_HOMEURL but I want get value
from option no defined in wp-config.php
For example:
1. staging version is on url http://staging.domain.com/
2. 1 of 3 developer work on http://domain.com/
2. 2 of 3 developer work on http://localhost:1234/company/domain.com/
3. 2 of 3 developer work on http://localhost/domain.com/
4. production url is http://domain.com/
So I must configure in each env WP_CONTENT_URL because is bad. If I
defined `WP_CONTENT_DIR_NAME` I don't must change WP_CONTENT_URL because
this url will be generate automatic. Then I can use WP-CLI and others
automatic apps.
My patch don't destroy nothing but it helps programmer to work
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35151#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list