[wp-trac] [WordPress Trac] #54233: Hardcoded wp-content instead of using WP_CONTENT_DIR

WordPress Trac noreply at wordpress.org
Mon Jun 27 10:18:59 UTC 2022


#54233: Hardcoded wp-content instead of using WP_CONTENT_DIR
--------------------------+---------------------
 Reporter:  malthert      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.1
Component:  General       |     Version:
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"53579" 53579]:
 {{{
 #!CommitTicketReference repository="" revision="53579"
 General: Revert an earlier define of the `WPINC` constant in
 `src/index.php`.

 This avoids a `Constant WPINC already defined in src/wp-settings.php on
 line 16` PHP warning, which happens when running a WordPress install out
 of the `src` directory after `npm run build:dev`.

 Add a comment to clarify the check for built assets and the direct mention
 of `wp-includes`.

 Follow-up to [53518].

 Props aristath.
 See #54233.
 }}}

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


More information about the wp-trac mailing list