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