Skip to content

Commit

Permalink
Remove all add_browse_sites_link relations
Browse files Browse the repository at this point in the history
  • Loading branch information
lupus2k committed Jul 26, 2024
1 parent 8a28181 commit 5358da6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,6 @@ public function tear_down() {
WorDBless_Users::init()->clear_all_users();
}

/**
* Tests add_browse_sites_link.
*
* @covers ::add_browse_sites_link
*/
public function test_add_browse_sites_link() {
global $menu;

// No output when executed in single site mode.
static::$admin_menu->add_browse_sites_link();
$this->assertArrayNotHasKey( 0, $menu );
}

/**
* Tests add_new_site_link.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,6 @@ public function add_plugins_menu() {
parent::add_plugins_menu();
}

/**
* Adds the site switcher link if user has more than one site.
*
* @deprecated 13.7
*/
public function add_browse_sites_link() {
_deprecated_function( __METHOD__, 'jetpack-13.7', 'Automattic\\Jetpack\\Masterbar\\Atomic_Admin_Menu::add_browse_sites_link' );
parent::add_browse_sites_link();
}

/**
* Adds a custom element class for Site Switcher menu item.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,6 @@ public function get_current_user_blog_count() {
return parent::get_current_user_blog_count();
}

/**
* Adds the site switcher link if user has more than one site.
*
* @deprecated 13.7
*/
public function add_browse_sites_link() {
_deprecated_function( __METHOD__, 'jetpack-13.7', 'Automattic\\Jetpack\\Masterbar\\WPcom_Admin_Menu::add_browse_sites_link' );
parent::add_browse_sites_link();
}

/**
* Adds a custom element class for Site Switcher menu item.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,6 @@ public function set_up() {
wp_set_current_user( static::$user_id );
}

/**
* Tests add_browse_sites_link.
*
* @covers ::add_browse_sites_link
*
* @expectedDeprecated Automattic\Jetpack\Dashboard_Customizations\Atomic_Admin_Menu::add_browse_sites_link
*/
public function test_add_browse_sites_link() {
global $menu;

// No output when executed in single site mode.
static::$admin_menu->add_browse_sites_link();
$this->assertArrayNotHasKey( 0, $menu );
}

/**
* Tests add_new_site_link.
*
Expand Down

0 comments on commit 5358da6

Please sign in to comment.