Code Duplication    Length = 5-5 lines in 2 locations

src/wp-admin/includes/class-wp-automatic-updater.php 2 locations

@@ 423-427 (lines=5) @@
420
		// Clean up, and check for any pending translations
421
		// (Core_Upgrader checks for core updates)
422
		$theme_stats = array();
423
		if ( isset( $this->update_results['theme'] ) ) {
424
			foreach ( $this->update_results['theme'] as $upgrade ) {
425
				$theme_stats[ $upgrade->item->theme ] = ( true === $upgrade->result );
426
			}
427
		}
428
		wp_update_themes( $theme_stats );  // Check for Theme updates
429
430
		$plugin_stats = array();
@@ 431-435 (lines=5) @@
428
		wp_update_themes( $theme_stats );  // Check for Theme updates
429
430
		$plugin_stats = array();
431
		if ( isset( $this->update_results['plugin'] ) ) {
432
			foreach ( $this->update_results['plugin'] as $upgrade ) {
433
				$plugin_stats[ $upgrade->item->plugin ] = ( true === $upgrade->result );
434
			}
435
		}
436
		wp_update_plugins( $plugin_stats ); // Check for Plugin updates
437
438
		// Finally, Process any new translations