[wp-trac] [WordPress Trac] #46327: Normalize class loading

WordPress Trac noreply at wordpress.org
Sat Feb 23 12:16:52 UTC 2019


#46327: Normalize class loading
----------------------------+-----------------------------
 Reporter:  szepe.viktor    |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Bootstrap/Load  |    Version:
 Severity:  trivial         |   Keywords:  needs-patch
  Focuses:                  |
----------------------------+-----------------------------
 While trying to autoload core classes I've found these 3 irregularities:

 {{{
 wp-admin/includes/ajax-actions.php:3259: require_once ABSPATH . '/wp-
 admin/includes/class-wp-site-icon.php';
 wp-admin/update.php:220: include_once( ABSPATH . 'wp-admin/includes/class-
 wp-upgrader.php' ); //for themes_api..
 wp-includes/update.php:559: include_once( ABSPATH . '/wp-admin/includes
 /class-wp-upgrader.php' );
 }}}


 - remove leading slash as ABSPATH contains it
 - remove trailing comment

 Thank you.

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


More information about the wp-trac mailing list