$body[] = '';
} // Plugins, Themes, Translations.
foreach ( array
( 'plugin', 'theme', 'translation'
) as $type ) { if ( !
isset( $this->update_results
[ $type ] ) ) { continue;
} $success_items =
wp_list_filter( $this->update_results
[ $type ], array
( 'result' => true
) );
if ( $success_items ) { $messages = array
( 'plugin' =>
__( 'The following plugins were successfully updated:'
),
'theme' =>
__( 'The following themes were successfully updated:'
),
'translation' =>
__( 'The following translations were successfully updated:'
),
);
$body[] =
$messages[ $type ];
foreach ( wp_list_pluck( $success_items, 'name'
) as $name ) { /* translators: %s: Name of plugin / theme / translation. */