[wp-trac] [WordPress Trac] #60414: Core PHP autoloader proposal

WordPress Trac noreply at wordpress.org
Thu Feb 1 14:02:34 UTC 2024


#60414: Core PHP autoloader proposal
-------------------------------------+-------------------------------------
 Reporter:  aristath                 |       Owner:  (none)
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch has-unit-      |     Focuses:  performance,
  tests                              |  sustainability
-------------------------------------+-------------------------------------

Comment (by justlevine):

 Love this!

 @aristath can you clarify how (if at all) this relates to the
 [[https://github.com/WordPress/Requests/blob/develop/src/Autoload.php|Autoload
 class used by Requests]]])? You mentioned in the Proposal that an API is
 outside of the scope, and I'm assuming that since Requests is also
 intended to be consumed outside of WP contexts that it'l continue to
 maintain it's own implementation, ''and'' I'm not seeing anything directly
 related in the diff,

 (Don't want to derail this by another decade by bringing up Composer again
 - so for people coming here directly and not
 [[https://make.wordpress.org/core/?p=110295|from the Make post]], let's
 hold on to this:

 > This is the first step towards modernizing the WP codebase. Though in
 itself it may appear like a marginal (but still very worthy) performance
 improvement, it opens the door to more improvements in the future of
 WordPress without any backwards-compatibility concerns.

 and [[https://make.wordpress.org/core/2024/02/01/proposal-implement-a-php-
 autoloader-in-wordpress-core/#comment-46140|this followup comment]])

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


More information about the wp-trac mailing list