[wp-trac] [WordPress Trac] #36335: Next generation: core autoloader proposal
WordPress Trac
noreply at wordpress.org
Mon Aug 29 23:17:00 UTC 2016
#36335: Next generation: core autoloader proposal
-----------------------------+------------------
Reporter: dnaber-de | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 4.7
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+------------------
Comment (by afragen):
>> PHP 5.3 and namespacing sure seems like it would negate many of these
potential issues.
>> Is it time?
>How? Even with namespaces, a plugin could still include it's own version
with whatever namespace we end up using. Example.
@jorbin but the unaware dev would now have to duplicate both the namespace
and the class name. A simple class name collision would no longer occur.
There is always be the possibility of someone ''doing it wrong''. I don't
believe we can stop all instances, especially if the dev's intent is to
override the class.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36335#comment:128>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list