Code Duplication    Length = 6-7 lines in 2 locations

src/wp-content/themes/twentytwelve/functions.php 1 location

@@ 112-117 (lines=6) @@
109
		 */
110
		$subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );
111
112
		if ( 'cyrillic' == $subset )
113
			$subsets .= ',cyrillic,cyrillic-ext';
114
		elseif ( 'greek' == $subset )
115
			$subsets .= ',greek,greek-ext';
116
		elseif ( 'vietnamese' == $subset )
117
			$subsets .= ',vietnamese';
118
119
		$query_args = array(
120
			'family' => 'Open+Sans:400italic,700italic,400,700',

src/wp-includes/script-loader.php 1 location

@@ 819-825 (lines=7) @@
816
		 */
817
		$subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)' );
818
819
		if ( 'cyrillic' == $subset ) {
820
			$subsets .= ',cyrillic,cyrillic-ext';
821
		} elseif ( 'greek' == $subset ) {
822
			$subsets .= ',greek,greek-ext';
823
		} elseif ( 'vietnamese' == $subset ) {
824
			$subsets .= ',vietnamese';
825
		}
826
827
		// Hotlink Open Sans, for now
828
		$open_sans_font_url = "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets";