Code Duplication    Length = 5-5 lines in 2 locations

src/wp-admin/includes/ajax-actions.php 2 locations

@@ 2917-2921 (lines=5) @@
2914
			}
2915
		}
2916
2917
		if ( ! is_multisite() && current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
2918
			$theme->customize_url = add_query_arg( array(
2919
				'return' => urlencode( network_admin_url( 'theme-install.php', 'relative' ) ),
2920
			), wp_customize_url( $theme->slug ) );
2921
		}
2922
2923
		$theme->name        = wp_kses( $theme->name, $themes_allowedtags );
2924
		$theme->author      = wp_kses( $theme->author, $themes_allowedtags );
@@ 3399-3403 (lines=5) @@
3396
		}
3397
	}
3398
3399
	if ( ! is_multisite() && current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
3400
		$status['customizeUrl'] = add_query_arg( array(
3401
			'return' => urlencode( network_admin_url( 'theme-install.php', 'relative' ) ),
3402
		), wp_customize_url( $slug ) );
3403
	}
3404
3405
	/*
3406
	 * See WP_Theme_Install_List_Table::_get_theme_status() if we wanted to check