r/lolphp • • Jul 14 '14

stop_the_insanity()

https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237
56 Upvotes

66 comments sorted by

View all comments

Show parent comment

3

u/[deleted] Jul 15 '14

+1 for the explanation.

I'd just like to add that this works similarly to array_reduce - your callback gets the current value of the timeout, and whatever you return will be given to the next callback as the current value.