Skip to content

Commit f0619a0

Browse files
committed
remove useless ternary
1 parent 22b1496 commit f0619a0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-menu/wpcom-admin-menu.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,10 +485,8 @@ function add_submenu_jetpack_forms() {
485485
return;
486486
}
487487

488-
// @phan-suppress-next-line PhanRedundantCondition
489-
$handler = $has_switch_class
490-
? ( new Dashboard_View_Switch() )->get_forms_admin_url()
491-
: 'edit.php?post_type=feedback';
488+
// This is so we don't just hardcode get_admin_url() . 'admin.php?page=jetpack-forms-admin', should we?
489+
$handler = ( new Dashboard_View_Switch() )->get_forms_admin_url();
492490

493491
add_submenu_page(
494492
'jetpack',

0 commit comments

Comments
 (0)