Update hook to revert the filters and wysiwyg.

From #4926.