Code Duplication    Length = 7-9 lines in 2 locations

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

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

class.jetpack.php 1 location

@@ 3180-3186 (lines=7) @@
3177
			do_action( 'jetpack_module_configuration_head_' . $_GET['configure'] );
3178
	}
3179
3180
	function admin_banner_styles() {
3181
		$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
3182
3183
		wp_enqueue_style( 'jetpack', plugins_url( "css/jetpack-banners{$min}.css", JETPACK__PLUGIN_FILE ), false, JETPACK__VERSION . '-20121016' );
3184
		wp_style_add_data( 'jetpack', 'rtl', 'replace' );
3185
		wp_style_add_data( 'jetpack', 'suffix', $min );
3186
	}
3187
3188
	function plugin_action_links( $actions ) {
3189