We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5dd7b8 commit 22b1496Copy full SHA for 22b1496
projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-menu/wpcom-admin-menu.php
@@ -479,10 +479,9 @@ function_exists( 'wpcom_site_has_feature' ) &&
479
*/
480
function add_submenu_jetpack_forms() {
481
$has_switch_class = class_exists( 'Dashboard_View_Switch' );
482
- // @phan-suppress-next-line PhanUndeclaredClassReference
483
- $has_method = method_exists( 'Dashboard_View_Switch', 'is_jetpack_forms_admin_page_available' );
484
485
- if ( ! $has_switch_class || ! $has_method || ! Dashboard_View_Switch::is_jetpack_forms_admin_page_available() ) {
+ // @phan-suppress-next-line PhanUndeclaredStaticMethod
+ if ( ! $has_switch_class || ! Dashboard_View_Switch::is_jetpack_forms_admin_page_available() ) {
486
return;
487
}
488
0 commit comments