Tidy up new filter for disabling publicize on a post.

Follow-up to 4b741e2e702a2fb8ba14afa66a0f121e78ef3391

Whitespace fixes, renaming the filter to something that makes it a bit
more understandable, and pass the post’s data across with it.

Also converting to Core’s new recommended brace syntax.