[wp-trac] [WordPress Trac] #48962: Start using namespaces in Core

WordPress Trac noreply at wordpress.org
Thu Jul 24 09:58:58 UTC 2025


#48962: Start using namespaces in Core
--------------------------------------+------------------------------
 Reporter:  taraschr                  |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  dev-feedback 2nd-opinion  |     Focuses:
--------------------------------------+------------------------------

Comment (by taraschr):

 The OP is still here 😃
 I would say it is not a BC change for the core by itself.

 I've revisited my proposal, and I believe the better approach is to create
 existing functions and classes aliased in namespaces (e.g., a PSR-4
 compatible structure) and then gradually start migrating the internal
 codebase to namespace-based functions and classes, leaving the old ones as
 a global fallback.

 Such an approach would allow us to avoid critical BC changes.

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


More information about the wp-trac mailing list