[wp-trac] [WordPress Trac] #35151: New constant `WP_CONTENT_DIR_NAME`

WordPress Trac noreply at wordpress.org
Tue Dec 22 03:11:55 UTC 2015


#35151: New constant `WP_CONTENT_DIR_NAME`
------------------------------+----------------------
 Reporter:  sebastian.pisula  |       Owner:
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:
Component:  General           |     Version:
 Severity:  normal            |  Resolution:  wontfix
 Keywords:  has-patch         |     Focuses:
------------------------------+----------------------
Changes (by dd32):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 To clarify, only `WP_CONTENT_DIR` and `WP_CONTENT_URL` need to be defined.
 `WP_SITEURL` is unrelated.

 The primary use of these constants isn't to rename the folder, it's to
 support subdirectory installations with WordPress as an external.
 For example, in the below scenario we've got WordPress installed into a
 subdirectory with it's wp-content directory, however we're overriding it
 and using the one in the parent directory instead.
 {{{
 /public_html/wp-config.php
 /public_html/wp-content/ (This would be used)
 /public_html/wordpress/
 /public_html/wordpress/wp-content/ (This wouldb be ignored)
 /public_html/wordpress/wp-admin/
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35151#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list