@@ 1509-1515 (lines=7) @@ | ||
1506 | $newest_safecss_post = Jetpack_Custom_CSS::get_current_revision(); |
|
1507 | ||
1508 | if ( $newest_safecss_post ) { |
|
1509 | if ( get_option( 'safecss_content_width' ) ) { |
|
1510 | // Add the meta to the post and the latest revision. |
|
1511 | update_post_meta( $newest_safecss_post['ID'], 'content_width', get_option( 'safecss_content_width' ) ); |
|
1512 | update_metadata( 'post', $newest_safecss_post['ID'], 'content_width', get_option( 'safecss_content_width' ) ); |
|
1513 | ||
1514 | delete_option( 'safecss_content_width' ); |
|
1515 | } |
|
1516 | ||
1517 | if ( get_option( 'safecss_add' ) ) { |
|
1518 | update_post_meta( $newest_safecss_post['ID'], 'custom_css_add', get_option( 'safecss_add' ) ); |
|
@@ 1517-1522 (lines=6) @@ | ||
1514 | delete_option( 'safecss_content_width' ); |
|
1515 | } |
|
1516 | ||
1517 | if ( get_option( 'safecss_add' ) ) { |
|
1518 | update_post_meta( $newest_safecss_post['ID'], 'custom_css_add', get_option( 'safecss_add' ) ); |
|
1519 | update_metadata( 'post', $newest_safecss_post['ID'], 'custom_css_add', get_option( 'safecss_add' ) ); |
|
1520 | ||
1521 | delete_option( 'safecss_add' ); |
|
1522 | } |
|
1523 | } |
|
1524 | } |
|
1525 |