[wp-trac] [WordPress Trac] #47100: Use WPINC constant in script-loader.php, load-scripts.php, and load-styles.php instead of hardcoded wp-includes directory name

WordPress Trac noreply at wordpress.org
Thu May 2 19:59:51 UTC 2019


#47100: Use WPINC constant in script-loader.php, load-scripts.php, and load-
styles.php instead of hardcoded wp-includes directory name
-----------------------------+-----------------------------
 Reporter:  mwarnermindedge  |      Owner:  (none)
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:  5.1.1
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 To allow users to have custom includes directory names, use the **WPINC**
 constant in script-loader.php, load-scripts.php, and load-styles.php
 instead of hardcoding the directory name as **wp-includes**.

 In load-scripts.php and load-styles.php, check whether WPINC is defined
 before re-defining it. (at the top of the files)

 That constant is used most everywhere else, so making these changes would
 make the code more consistent, as well.  The WP_CONTENT_DIR is generally
 used throughout WP.  This change will follow that example.

 This is my first ticket, so let me  know if I should upload my file
 changes for review anywhere.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47100>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list