In 2012, the much loved and much missed WordPress developer Alex Mills raised a WordPress Trac ticket…
extract()is a terrible function that makes code harder to debug and harder to understand. We should discourage it’s use and remove all of our uses of it.
As a result, use of the PHP functions was removed from WordPress and was added to the coding standards (which, in turn, made it into the WordPress sniffs for PHPCS).
But why, and what should we do instead?
(more…)




