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

WordPress Trac noreply at wordpress.org
Wed Jul 23 18:36:51 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 dmsnell):

 Related: There’s discussion in PHP about prefixing all global-namespaced
 function calls in an effort to improve the language performance when
 dealing with namespaces.

 That is, should every call to global functions be like `\get_post()`
 rather than `get_post()` (without the leading backslack).

 https://wiki.php.net/rfc/global_function_parser_directive

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


More information about the wp-trac mailing list