Coding Standards: Change auto-update filters to be more consistent.

* send_theme_auto_update_email 👉 auto_theme_update_send_email
* wp_plugins_auto_update_enabled 👉 plugins_auto_update_enabled
* wp_themes_auto_update_enabled 👉 themes_auto_update_enabled

Want to make sure that @ronalfy gets props for his work in #50052 too.

See #50052.
Props: ronalfy, pbiron, azaozz, audrasjb, whyisjake.


Built from https://develop.svn.wordpress.org/trunk@47857


git-svn-id: http://core.svn.wordpress.org/trunk@47633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
whyisjake
2020-05-26 18:03:08 +00:00
parent a01835679a
commit 57fb3c6cf0
3 changed files with 4 additions and 4 deletions

View File

@@ -902,7 +902,7 @@ class WP_Automatic_Updater {
*
* @param bool $enabled True if notifications are enabled, false otherwise.
*/
$notifications_enabled = apply_filters( 'send_theme_auto_update_email', true );
$notifications_enabled = apply_filters( 'auto_theme_update_send_email', true );
if ( ! empty( $update_results['theme'] ) && $notifications_enabled ) {
foreach ( $update_results['theme'] as $update_result ) {