PHP function fell outside PHP tags.

The function do_action() on line 983 fell outside the PHP tags en thus displayed as pure text in the admin panel.
Merge pull request #2857 from jorijnsmit/patch-2

PHP function fell outside PHP tags