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