Code Duplication    Length = 6-7 lines in 2 locations

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

@@ 1481-1487 (lines=7) @@
1478
		$newest_safecss_post = Jetpack_Custom_CSS::get_current_revision();
1479
1480
		if ( $newest_safecss_post ) {
1481
			if ( get_option( 'safecss_content_width' ) ) {
1482
				// Add the meta to the post and the latest revision.
1483
				update_post_meta( $newest_safecss_post['ID'], 'content_width', get_option( 'safecss_content_width' ) );
1484
				update_metadata( 'post', $newest_safecss_post['ID'], 'content_width', get_option( 'safecss_content_width' ) );
1485
1486
				delete_option( 'safecss_content_width' );
1487
			}
1488
1489
			if ( get_option( 'safecss_add' ) ) {
1490
				update_post_meta( $newest_safecss_post['ID'], 'custom_css_add', get_option( 'safecss_add' ) );
@@ 1489-1494 (lines=6) @@
1486
				delete_option( 'safecss_content_width' );
1487
			}
1488
1489
			if ( get_option( 'safecss_add' ) ) {
1490
				update_post_meta( $newest_safecss_post['ID'], 'custom_css_add', get_option( 'safecss_add' ) );
1491
				update_metadata( 'post', $newest_safecss_post['ID'], 'custom_css_add', get_option( 'safecss_add' ) );
1492
1493
				delete_option( 'safecss_add' );
1494
			}
1495
		}
1496
	}
1497