From 4d6fbdabd28230422a44c86960fed29c91d72d76 Mon Sep 17 00:00:00 2001 From: Alex Cicovic <23142906+acicovic@users.noreply.github.com> Date: Tue, 12 Nov 2024 18:14:42 +0200 Subject: [PATCH] Dashboard_Page: Remove $parsely until we need it --- src/UI/class-dashboard-page.php | 18 ------------------ wp-parsely.php | 2 +- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/src/UI/class-dashboard-page.php b/src/UI/class-dashboard-page.php index b5f82e42f..405f418f5 100644 --- a/src/UI/class-dashboard-page.php +++ b/src/UI/class-dashboard-page.php @@ -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. * diff --git a/wp-parsely.php b/wp-parsely.php index 21505046d..c7a800c3a 100644 --- a/wp-parsely.php +++ b/wp-parsely.php @@ -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'] );