Merge pull request #1208 from boonebgorges/master

Use foreach loop rather than array_map() to invoke do_hook() callbacks
Conflicts:
	.travis.yml