Code Duplication    Length = 8-9 lines in 2 locations

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

@@ 1531-1538 (lines=8) @@
1528
	 * When on the edit screen, make sure the custom content width
1529
	 * setting is applied to the large image size.
1530
	 */
1531
	static function editor_max_image_size( $dims, $size = 'medium', $context = null ) {
1532
		list( $width, $height ) = $dims;
1533
1534
		if ( 'large' == $size && 'edit' == $context )
1535
			$width = Jetpack::get_content_width();
1536
1537
		return array( $width, $height );
1538
	}
1539
1540
	/**
1541
	 * Override the content_width with a custom value if one is set.

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

@@ 941-949 (lines=9) @@
938
	 *
939
	 * @return array
940
	 */
941
	static function editor_max_image_size( $dims, $size = 'medium', $context = null ) {
942
		list( $width, $height ) = $dims;
943
944
		if ( 'large' === $size && 'edit' === $context ) {
945
			$width = Jetpack::get_content_width();
946
		}
947
948
		return array( $width, $height );
949
	}
950
951
	/**
952
	 * Override the content_width with a custom value if one is set.