Skip to content
Merged
Prev Previous commit
Next Next commit
assume defaults and not conditional menu rendering
  • Loading branch information
CGastrell committed Sep 23, 2025
commit 29ad5fb30c6e9a0404fcd6deaa3675f43bf39909
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ public static function gutenblock_render_field_image_select( $atts, $content, $b
public function admin_menu() {
$slug = 'feedback';

if ( is_plugin_active( 'polldaddy/polldaddy.php' ) || ! Jetpack_Forms::is_legacy_menu_item_retired() ) {
if ( is_plugin_active( 'polldaddy/polldaddy.php' ) ) {
add_menu_page(
__( 'Feedback', 'jetpack-forms' ),
__( 'Feedback', 'jetpack-forms' ),
Expand All @@ -1385,12 +1385,11 @@ public function admin_menu() {
$slug
);

if ( Jetpack_Forms::is_legacy_menu_item_retired() ) {
remove_submenu_page(
$slug,
'edit.php?post_type=feedback'
);
}
// remove the first default submenu item
remove_submenu_page(
$slug,
'edit.php?post_type=feedback'
);
}

/**
Expand Down