Skip to content

Commit

Permalink
fix: show handoff to finish Newspack setup only if setup is incomplete (
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo committed Mar 13, 2023
1 parent bdc1e5a commit 1173b5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/class-handoff-banner.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ public static function register_handoff_for_plugin( $plugin, $show_on_block_edit
* @return bool
*/
public static function needs_handoff_return_ui() {
if ( get_option( NEWSPACK_SETUP_COMPLETE, true ) ) {
return false;
}

return get_option( NEWSPACK_HANDOFF ) ? true : false;
}

Expand Down

0 comments on commit 1173b5b

Please sign in to comment.