Replaced the regExp and added a foreach loop. Removed style

https://github.com/GigaOM/gigaom/issues/5083

I tested it using the examples here https://github.com/GigaOM/gigaom/issues/4979 
they all looked good
It's `__return_true()`, defined in https://core.trac.wordpress.org/browser/tags/4.0/src/wp-includes/functions.php