Code Duplication    Length = 7-7 lines in 2 locations

_inc/lib/admin-pages/class.jetpack-admin-page.php 1 location

@@ 100-106 (lines=7) @@
97
	}
98
99
	// Enqueue the Jetpack admin stylesheet
100
	function admin_styles() {
101
		$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
102
103
		wp_enqueue_style( 'jetpack-admin', plugins_url( "css/jetpack-admin{$min}.css", JETPACK__PLUGIN_FILE ), array( 'genericons' ), JETPACK__VERSION . '-20121016' );
104
		wp_style_add_data( 'jetpack-admin', 'rtl', 'replace' );
105
		wp_style_add_data( 'jetpack-admin', 'suffix', $min );
106
	}
107
108
	function is_wp_version_too_old() {
109
		global $wp_version;

class.jetpack.php 1 location

@@ 3132-3138 (lines=7) @@
3129
			do_action( 'jetpack_module_configuration_head_' . $_GET['configure'] );
3130
	}
3131
3132
	function admin_banner_styles() {
3133
		$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
3134
3135
		wp_enqueue_style( 'jetpack', plugins_url( "css/jetpack-banners{$min}.css", JETPACK__PLUGIN_FILE ), false, JETPACK__VERSION . '-20121016' );
3136
		wp_style_add_data( 'jetpack', 'rtl', 'replace' );
3137
		wp_style_add_data( 'jetpack', 'suffix', $min );
3138
	}
3139
3140
	function admin_scripts() {
3141
		wp_enqueue_script( 'jetpack-js', plugins_url( '_inc/jp.js', JETPACK__PLUGIN_FILE ), array( 'jquery', 'wp-util' ), JETPACK__VERSION . '-20121111' );