This is part of the project of #33587. Moving this particular message to the 'wp_set_comment_status' action has the added bonus that the notification is sent after the comment status has been updated in the database. Previously, a database error could lead to a case where an approval notification is sent, but the comment status change fails for some reason. Props mrmist, NickDuncan. Fixes #14078. Built from https://develop.svn.wordpress.org/trunk@34537 git-svn-id: http://core.svn.wordpress.org/trunk@34501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
82 KiB
82 KiB