From 4f837ef5b6be2f0c0900c34070da9ef099e0236a Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Wed, 11 Nov 2015 22:45:44 +0000 Subject: [PATCH] Upgrade: Revert [34543] because of incomplete and incorrect functionality. See #33932. Fixes #34434. git-svn-id: https://develop.svn.wordpress.org/trunk@35619 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-upgrader.php | 22 --------------------- 1 file changed, 22 deletions(-) diff --git a/src/wp-admin/includes/class-wp-upgrader.php b/src/wp-admin/includes/class-wp-upgrader.php index 18f9ad2f8d..1d9b0a0a02 100644 --- a/src/wp-admin/includes/class-wp-upgrader.php +++ b/src/wp-admin/includes/class-wp-upgrader.php @@ -3415,24 +3415,6 @@ class WP_Automatic_Updater { // Plugins, Themes, Translations foreach ( array( 'plugin', 'theme', 'translation' ) as $type ) { - - /** - * Filter to control whether a notification email is sent to the site admin email address for - * plugin, theme, and translation updates. - * - * By default, this only has an effect when automatic background updates are enabled and a - * development version of WordPress is in use. - * - * @since 4.4.0 - * - * @param bool $notify Whether the site administrator is notified. - * @param string $type The type of update. One of 'plugin', 'theme', or 'translation'. - * @param WP_Automatic_Updater $this The WP_Automatic_Updater instance. - */ - if ( ! apply_filters( 'send_update_notification_email', true, $type, $this ) ) { - continue; - } - if ( ! isset( $this->update_results[ $type ] ) ) continue; $success_items = wp_list_filter( $this->update_results[ $type ], array( 'result' => true ) ); @@ -3467,10 +3449,6 @@ class WP_Automatic_Updater { $body[] = ''; } - if ( empty( $body ) ) { - return; - } - $site_title = wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ); if ( $failures ) { $body[] = trim( __(