Make WordPress Core

Changeset 35619


Ignore:
Timestamp:
11/11/2015 10:45:44 PM (9 years ago)
Author:
ocean90
Message:

Upgrade: Revert [34543] because of incomplete and incorrect functionality.

See #33932.
Fixes #34434.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r35586 r35619  
    34163416        // Plugins, Themes, Translations
    34173417        foreach ( array( 'plugin', 'theme', 'translation' ) as $type ) {
    3418 
    3419             /**
    3420              * Filter to control whether a notification email is sent to the site admin email address for
    3421              * plugin, theme, and translation updates.
    3422              *
    3423              * By default, this only has an effect when automatic background updates are enabled and a
    3424              * development version of WordPress is in use.
    3425              *
    3426              * @since 4.4.0
    3427              *
    3428              * @param bool                 $notify Whether the site administrator is notified.
    3429              * @param string               $type   The type of update. One of 'plugin', 'theme', or 'translation'.
    3430              * @param WP_Automatic_Updater $this   The WP_Automatic_Updater instance.
    3431              */
    3432             if ( ! apply_filters( 'send_update_notification_email', true, $type, $this ) ) {
    3433                 continue;
    3434             }
    3435 
    34363418            if ( ! isset( $this->update_results[ $type ] ) )
    34373419                continue;
     
    34663448            }
    34673449            $body[] = '';
    3468         }
    3469 
    3470         if ( empty( $body ) ) {
    3471             return;
    34723450        }
    34733451
Note: See TracChangeset for help on using the changeset viewer.