Changeset 35619
- Timestamp:
- 11/11/2015 10:45:44 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r35586 r35619 3416 3416 // Plugins, Themes, Translations 3417 3417 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 for3421 * plugin, theme, and translation updates.3422 *3423 * By default, this only has an effect when automatic background updates are enabled and a3424 * development version of WordPress is in use.3425 *3426 * @since 4.4.03427 *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 3436 3418 if ( ! isset( $this->update_results[ $type ] ) ) 3437 3419 continue; … … 3466 3448 } 3467 3449 $body[] = ''; 3468 }3469 3470 if ( empty( $body ) ) {3471 return;3472 3450 } 3473 3451
Note: See TracChangeset
for help on using the changeset viewer.