Skip to content

Commit

Permalink
Remove screen id check
Browse files Browse the repository at this point in the history
  • Loading branch information
moon0326 committed Sep 27, 2023
1 parent 8228730 commit cd67ace
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions includes/class-wc-calypso-bridge-customize-store.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,18 @@ private function __construct() {
}

add_action( 'load-site-editor.php', array( $this, 'mark_customize_store_task_as_completed_on_site_editor' ) );

}

/**
* Mark Customize Store task as completed on Site Editor by checking $_GET['from'] value.
* The value is set from WP-Calypso.
* The value is set from WP-Calypso.
*
* @since 2.2.14
*
* @return void
*/
public function mark_customize_store_task_as_completed_on_site_editor() {
$screen = get_current_screen();
if ( $screen->id === 'site-editor' && isset( $_GET['from'] ) && $_GET['from'] === 'theme-browser' ) {
if ( isset( $_GET['from'] ) && $_GET['from'] === 'theme-browser' ) {
update_option( 'woocommerce_admin_customize_store_completed', 'yes' );
}
}
Expand Down

0 comments on commit cd67ace

Please sign in to comment.