diff --git a/includes/class-so-clean-up-wp-seo-settings.php b/includes/class-so-clean-up-wp-seo-settings.php index 1439ba3..2b7da90 100644 --- a/includes/class-so-clean-up-wp-seo-settings.php +++ b/includes/class-so-clean-up-wp-seo-settings.php @@ -242,7 +242,7 @@ private function settings_fields() { array( 'id' => 'hide_premium_submenu', 'label' => __( 'Premium submenus', 'so-clean-up-wp-seo' ), - 'description' => __( 'Hides the "Premium" and "Workouts submenus.', 'so-clean-up-wp-seo' ), + 'description' => __( 'Hides the "Premium", "Workouts" and "Redirects" submenus.', 'so-clean-up-wp-seo' ), 'type' => 'checkbox', 'default' => $options['hide_premium_submenu'], ), diff --git a/includes/class-so-clean-up-wp-seo.php b/includes/class-so-clean-up-wp-seo.php index 767ab87..e27eb4c 100644 --- a/includes/class-so-clean-up-wp-seo.php +++ b/includes/class-so-clean-up-wp-seo.php @@ -388,7 +388,7 @@ public function so_cuws_hide_visibility_css() { // hide "Premium" submenu in its entirety // include hiding "Workouts" submenu in its entirety if ( ! empty( $this->options['hide_premium_submenu'] ) ) { - echo 'li#toplevel_page_wpseo_dashboard>ul>li:nth-child(6),li#toplevel_page_wpseo_dashboard>ul>li:nth-child(7){display:none;}'; // @since v3.6.0 hide "Premium" submenu in its entirety; @modified v3.12.0 decrease with 1, due to Search Console submenu being removed; @since 3.14.8 include hiding "Workouts" submenu in its entirety + echo 'li#toplevel_page_wpseo_dashboard>ul>li:nth-child(6),li#toplevel_page_wpseo_dashboard>ul>li:nth-child(7),li#toplevel_page_wpseo_dashboard>ul>li:nth-child(8){display:none;}'; // @since v3.6.0 hide "Premium" submenu in its entirety; @modified v3.12.0 decrease with 1, due to Search Console submenu being removed; @since 3.14.8 include hiding "Workouts" submenu in its entirety @since 3.x.x include hiding "Redirects" submenu in its entirety } // hide Post/Page/Taxonomy Deletion Premium Ad