Skip to content

Commit

Permalink
Dashboard_Page: Remove $parsely until we need it
Browse files Browse the repository at this point in the history
  • Loading branch information
acicovic committed Nov 12, 2024
1 parent 2bd14b6 commit 4d6fbda
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
18 changes: 0 additions & 18 deletions src/UI/class-dashboard-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,6 @@
* @since 3.18.0
*/
final class Dashboard_Page {
/**
* Instance of Parsely class.
*
* @var Parsely
*/
private $parsely;

/**
* Constructor.
*
* @since 3.18.0
*
* @param Parsely $parsely Instance of Parsely class.
*/
public function __construct( Parsely $parsely ) {
$this->parsely = $parsely;
}

/**
* Registers the dashboard page.
*
Expand Down
2 changes: 1 addition & 1 deletion wp-parsely.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function parsely_wp_admin_early_register(): void {
$GLOBALS['parsely_settings_page']->run();

// Plugin dashboard page.
$GLOBALS['parsely_dashboard_page'] = new Dashboard_Page( $GLOBALS['parsely'] );
$GLOBALS['parsely_dashboard_page'] = new Dashboard_Page();
$GLOBALS['parsely_dashboard_page']->run();

$network_admin_sites_list = new Network_Admin_Sites_List( $GLOBALS['parsely'] );
Expand Down

0 comments on commit 4d6fbda

Please sign in to comment.