Code Duplication    Length = 2-2 lines in 2 locations

src/wp-includes/update.php 2 locations

@@ 659-660 (lines=2) @@
656
 */
657
function _maybe_update_plugins() {
658
	$current = get_site_transient( 'update_plugins' );
659
	if ( isset( $current->last_checked ) && 12 * HOUR_IN_SECONDS > ( time() - $current->last_checked ) )
660
		return;
661
	wp_update_plugins();
662
}
663
@@ 675-676 (lines=2) @@
672
 */
673
function _maybe_update_themes() {
674
	$current = get_site_transient( 'update_themes' );
675
	if ( isset( $current->last_checked ) && 12 * HOUR_IN_SECONDS > ( time() - $current->last_checked ) )
676
		return;
677
	wp_update_themes();
678
}
679