[wp-trac] [WordPress Trac] #54233: Hardcoded wp-content instead of using WP_CONTENT_DIR
WordPress Trac
noreply at wordpress.org
Wed Nov 24 17:45:35 UTC 2021
#54233: Hardcoded wp-content instead of using WP_CONTENT_DIR
--------------------------+------------------------------
Reporter: malthert | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: major | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by SergeyBiryukov):
Hi there, thanks for the ticket and the PR!
This has been previously proposed in #35151 and #47100, which were both
closed. See the explanations here:
* comment:3:ticket:23249
* comment:3:ticket:24368
* comment:3:ticket:35151
* comment:7:ticket:35151
* comment:1:ticket:47100
To summarize:
* The primary use of the `WP_CONTENT_DIR` and `WP_CONTENT_URL` constants
is not to rename the folder, it's to support subdirectory installations
with WordPress as an external.
* The `WPINC` is not designed to be overridden or set in configurations,
and definitely should not be set for the purposes of having a custom
includes directory, as that is fundamentally not supported by WordPress.
Related: #23249, #24368, #28264.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54233#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list