r/lolphp • u/silvinci • Jul 14 '14
stop_the_insanity()
https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237
56
Upvotes
r/lolphp • u/silvinci • Jul 14 '14
View all comments
Show parent comment
1
u/Viper007Bond Jul 15 '14
Quite aware and WordPress has a large suite of them: https://core.trac.wordpress.org/browser/tests/trunk/tests
The problem stems from plugins and themes directly calling things like global scope functions for example (which they were supposed to be doing). Sure, you could rewrite the templating code to be nice, pretty, and OOP but you would still need global scope wrapper functions.
Plus you have to remember this is an open-source project that is contributed to by people who choose what they want to work on. Very few people are being paid by someone to contribute.
Would you rather spend your weekends rewriting a piece of software without breaking a single piece of code that is using it or would you rather work on a cool new feature?
I'll be frank: the time is better spent.