Code Duplication    Length = 6-7 lines in 2 locations

modules/custom-css/custom-css.php 2 locations

@@ 1467-1473 (lines=7) @@
1464
		$newest_safecss_post = Jetpack_Custom_CSS::get_current_revision();
1465
1466
		if ( $newest_safecss_post ) {
1467
			if ( get_option( 'safecss_content_width' ) ) {
1468
				// Add the meta to the post and the latest revision.
1469
				update_post_meta( $newest_safecss_post['ID'], 'content_width', get_option( 'safecss_content_width' ) );
1470
				update_metadata( 'post', $newest_safecss_post['ID'], 'content_width', get_option( 'safecss_content_width' ) );
1471
1472
				delete_option( 'safecss_content_width' );
1473
			}
1474
1475
			if ( get_option( 'safecss_add' ) ) {
1476
				update_post_meta( $newest_safecss_post['ID'], 'custom_css_add', get_option( 'safecss_add' ) );
@@ 1475-1480 (lines=6) @@
1472
				delete_option( 'safecss_content_width' );
1473
			}
1474
1475
			if ( get_option( 'safecss_add' ) ) {
1476
				update_post_meta( $newest_safecss_post['ID'], 'custom_css_add', get_option( 'safecss_add' ) );
1477
				update_metadata( 'post', $newest_safecss_post['ID'], 'custom_css_add', get_option( 'safecss_add' ) );
1478
1479
				delete_option( 'safecss_add' );
1480
			}
1481
		}
1482
	}
1483