[wp-trac] [WordPress Trac] #54233: Hardcoded wp-content instead of using WP_CONTENT_DIR
WordPress Trac
noreply at wordpress.org
Mon Oct 18 07:41:09 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 manfcarlo):
Thanks for working on this, I'd expect wp-content to be hard-coded in some
plugins but I'm shocked that it's still hard-coded in core.
With wp-includes, I thought changing it wasn't supported, and it looks
like none of the define statements for WPINC actually check that it isn't
already defined, so the hard-coding of that one is maybe less of an issue.
Upon a quick check I see that /wp-admin/load-styles.php also defines
WP_CONTENT_DIR without checking if it's already defined. Maybe this is
also a defect?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54233#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list