Skip to content

Commit

Permalink
Update initial state in the Jetpack dashboard and settings only
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieur-z committed May 23, 2024
1 parent 06d6ab0 commit 676a01a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/plugins/jetpack/modules/custom-css/custom-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,10 @@ public static function jetpack_content_width( $content_width ) {
* Update the initial state to include the `replace` option (Start Fresh) in the module data.
*/
public static function update_initial_state() {
if ( 'toplevel_page_jetpack' !== get_current_screen()->base ) {
return;
}

$start_fresh = null;
// $wp_customize is not available here. Let's get the value of the `replace` option from the last
// customize_changeset posts.
Expand Down

0 comments on commit 676a01a

Please sign in to comment.