Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feat/ia-setup__review' into feat…
Browse files Browse the repository at this point in the history
…/ia-setup
  • Loading branch information
jaredrethman committed Dec 18, 2024
2 parents f463137 + 3207789 commit 87b7a5c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion includes/wizards/class-setup-wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class Setup_Wizard extends Wizard {
*/
public function __construct() {
parent::__construct();
add_action( 'admin_menu', [ $this, 'add_page' ], $this->admin_menu_priority );
add_action( 'rest_api_init', [ $this, 'register_api_endpoints' ] );
if ( ! Newspack::is_setup_complete() ) {
add_action( 'current_screen', [ $this, 'redirect_to_setup' ] );
Expand Down
9 changes: 0 additions & 9 deletions includes/wizards/newspack/class-newspack-dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,6 @@ class Newspack_Dashboard extends Wizard {
*/
protected $admin_menu_priority = 1;

/**
* Constructor.
*/
public function __construct() {
parent::__construct();
// Always show dashboard, even if setup is not complete.
add_action( 'admin_menu', [ $this, 'add_page' ], $this->admin_menu_priority );
}

/**
* Get Dashboard data
*
Expand Down

0 comments on commit 87b7a5c

Please sign in to comment.