Skip to content

Commit

Permalink
Remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
wpalani committed Jan 10, 2024
1 parent dd6cae8 commit f366e9c
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions includes/Deactivation.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,28 +47,9 @@ public function __construct( Container $container ) {
* @return void
*/
public function handle() {
/*
* The data module is currently handing the 'site_launched' event.
* We are commenting out the code below but keeping it as example for future events.
*/
// $this->site_launched_event();
$this->disable_coming_soon();
}

/**
* Send site launched event.
*
* @return void
*/
public function site_launched_event() {
$coming_soon_service = $this->container->has( 'comingSoon' ) ? $this->container->get( 'comingSoon' ) : null;
// Verify that the coming soon page is active.
if ( $coming_soon_service && $coming_soon_service->is_enabled() ) {
$site_launch_event = new Events\SiteLaunched();
$site_launch_event->send();
}
}

/**
* Disable the coming soon page.
*
Expand Down

0 comments on commit f366e9c

Please sign in to comment.