Code Duplication    Length = 8-8 lines in 2 locations

modules/custom-css/custom-css-4.7.php 1 location

@@ 983-990 (lines=8) @@
980
	 * 'template_redirect' action and
981
	 * 'admin_init' action
982
	 */
983
	static function set_content_width() {
984
		// Don't apply this filter on the Edit CSS page.
985
		if ( isset( $_GET['page'] ) && 'editcss' === $_GET['page'] && is_admin() ) {
986
			return;
987
		}
988
989
		$GLOBALS['content_width'] = Jetpack::get_content_width();
990
	}
991
992
	/**
993
	 * Make sure the preprocessor we're saving is one we know about.

modules/custom-css/custom-css.php 1 location

@@ 532-539 (lines=8) @@
529
	 * 'template_redirect' action and
530
	 * 'admin_init' action
531
	 */
532
	static function set_content_width(){
533
		// Don't apply this filter on the Edit CSS page
534
		if ( isset( $_GET ) && isset( $_GET['page'] ) &&  'editcss' == $_GET['page'] && is_admin() ) {
535
			return;
536
		}
537
538
		$GLOBALS['content_width'] = Jetpack::get_content_width();
539
	}
540
541
	/*
542
	 * False when the site has the Custom Design upgrade.