awesomemotive / all-in-one-seo-pack

All in One SEO plugin for WordPress SEO
https://aioseo.com
339 stars 155 forks source link

Code Refactor - Move Alt PHP Functions in modules to static class #3070

Closed EkoJR closed 4 years ago

EkoJR commented 4 years ago

Move alternative PHP Functions in All_in_One_SEO_Pack_Module class to a static class so that it can be accessed across the plugin. This would also further centralize tracking compatibility with PHP versions; for when it becomes time to drop older versions of PHP.

Some of these functions/methods are improved operations (performance, multilingual, etc.), or for compatibility with older PHP versions; where the function already exists, but params or operations changed ( one example I recently held off on was dirname() with the $levels param that was added in 7.0 ).