Skip to content

Commit

Permalink
Merge pull request #164 from mustafauysal/fix/cron
Browse files Browse the repository at this point in the history
Initialize cron in main
  • Loading branch information
ajaydsouza committed May 24, 2024
2 parents 89d2e81 + 1d05d77 commit 7201c07
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
10 changes: 0 additions & 10 deletions includes/admin/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,6 @@ class Admin {
*/
public $tools_page;

/**
* Cron class.
*
* @since 3.3.0
*
* @var object Cron class.
*/
public $cron;

/**
* Dashboard widgets.
*
Expand Down Expand Up @@ -176,7 +167,6 @@ public function __construct() {
$this->metabox = new Metabox();
$this->import_export = new Import_Export();
$this->tools_page = new Tools_Page();
$this->cron = new Cron();
$this->dashboard_widgets = new Dashboard_Widgets();
$this->cache = new Cache();
}
Expand Down
12 changes: 12 additions & 0 deletions includes/class-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

namespace WebberZone\Top_Ten;

use WebberZone\Top_Ten\Admin\Cron;

if ( ! defined( 'WPINC' ) ) {
exit;
}
Expand Down Expand Up @@ -105,6 +107,15 @@ final class Main {
*/
public $language;

/**
* Cron class.
*
* @since 3.3.0
*
* @var object Cron class.
*/
public $cron;

/**
* Gets the instance of the class.
*
Expand Down Expand Up @@ -144,6 +155,7 @@ private function init() {
$this->blocks = new Frontend\Blocks\Blocks();
$this->filters = new Frontend\Filters();
$this->feed = new Frontend\Feed();
$this->cron = new Cron();

$this->hooks();

Expand Down

0 comments on commit 7201c07

Please sign in to comment.