[wp-trac] [WordPress Trac] #43308: Alter behavior load-scripts.php and load-styles.php to reduce potentially adverse scenarios

WordPress Trac noreply at wordpress.org
Wed Feb 14 15:07:01 UTC 2018


#43308: Alter behavior load-scripts.php and load-styles.php to reduce potentially
adverse scenarios
---------------------------+------------------------------
 Reporter:  youngcp        |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:  4.9.4
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+------------------------------

Comment (by youngcp):

 Replying to [comment:5 azaozz]:
 > I also don't think loading `admin.php` is a good idea. This basically
 loads all of WordPress. The point of having `load-scripts.php` and `load-
 styles.php` is to '''not''' load WordPress three times on every page load.
 That's why they use a whitelist to process only default scripts and
 stylesheets.

 Would using `define( 'SHORTINIT', true );` with `wp-load.php` count as
 half-loaded or less than that?

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


More information about the wp-trac mailing list