From e834dc893580e5fcfd56b84c772d4a78c0ec036a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 20 May 2020 19:31:50 +0000 Subject: [PATCH] Docs: Add missing `@since` tag for `auto_plugin_theme_update_email` filter. See #50052. git-svn-id: https://develop.svn.wordpress.org/trunk@47836 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-automatic-updater.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wp-admin/includes/class-wp-automatic-updater.php b/src/wp-admin/includes/class-wp-automatic-updater.php index 20f1847de7..ef5690faac 100644 --- a/src/wp-admin/includes/class-wp-automatic-updater.php +++ b/src/wp-admin/includes/class-wp-automatic-updater.php @@ -1026,6 +1026,8 @@ class WP_Automatic_Updater { /** * Filters the email sent following an automatic background plugin update. * + * @since 5.5.0 + * * @param array $email { * Array of email arguments that will be passed to wp_mail(). * @@ -1041,6 +1043,7 @@ class WP_Automatic_Updater { * @param object $failed_updates The updates that failed. */ $email = apply_filters( 'auto_plugin_theme_update_email', $email, $type, $successful_updates, $failed_updates ); + wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] ); }