News for hackers. Stuff that matters.
Re:A Crash-Course in PHP Namespaces for WordPress Developers by acobster on Monday May 07, 2018 @06:17PM (#17016930)
There's more than one big problem with WordPress, and namespacing is one of them. It's way too common, even in some of the most popular plugins, to just toss plugins into the global namespace and prefix them with $your_plugin_abbrev_. I've had textbook cases of namespace collision take down sites on routine plugin updates before.

The core design of WordPress relies on global state, e.g. the $post global. I agree that that's a huge issue. Unfortunately, that will never be fixed, because it's so central to the design that "refactoring" the WP core not to use global state would break almost every plugin and every theme, and would be a fundamentally different system.

There are no comments on this comment yet.