Skip to content

Commit

Permalink
commit v3.14.10
Browse files Browse the repository at this point in the history
* hide "Redirects"-submenu and hide "Crawl Settings"-tab
  • Loading branch information
senlin committed Nov 7, 2022
1 parent 8a739f5 commit 06f9024
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![plugin version](https://img.shields.io/wordpress/plugin/v/so-clean-up-wp-seo)](https://wordpress.org/plugins/so-clean-up-wp-seo) [![WP compatibility](https://plugintests.com/plugins/wporg/so-clean-up-wp-seo/wp-badge.svg)](https://plugintests.com/plugins/wporg/so-clean-up-wp-seo/latest) [![PHP compatibility](https://plugintests.com/plugins/so-clean-up-wp-seo/php-badge.svg)](https://plugintests.com/plugins/so-clean-up-wp-seo/latest)

###### Last updated on November 7, 2022
###### Development version 3.14.9
###### Development version 3.14.10
###### requires at least WordPress 4.9
###### tested up to WordPress 6.1
###### Author: [Pieter Bos](https://github.com/senlin)
Expand All @@ -17,7 +17,7 @@ Almost anyone who uses the Yoast SEO plugin will agree that it is a good SEO plu

**New in this version:**

* hide "Connect Yoast SEO with Zapier"-text in post publish sidebar
* hide "Redirects"-submenu and hide "Crawl Settings"-tab

<hr>

Expand Down Expand Up @@ -120,6 +120,11 @@ We welcome your contributions very much! PR's will be considered and of course b

## Changelog

### 3.14.10

* release date November 7, 2022
* hide ["Redirects"-submenu](https://github.com/senlin/so-clean-up-wp-seo/pull/103) and hide ["Crawl Settings"-tab](https://github.com/senlin/so-clean-up-wp-seo/pull/104), both courtesy of [Chris Johnson](https://github.com/workeffortwaste)

### 3.14.9

* release date November 7, 2022
Expand Down
8 changes: 4 additions & 4 deletions includes/class-so-clean-up-wp-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class CUWS {
* @param string $file
* @param string $version Version number.
*/
public function __construct( $file = '', $version = '3.14.9' ) {
public function __construct( $file = '', $version = '3.14.10' ) {
$this->_version = $version;
$this->_token = 'cuws';

Expand Down Expand Up @@ -382,13 +382,13 @@ public function so_cuws_hide_visibility_css() {

// hide crawl settings tab
if ( ! empty( $this->options['hide_crawl_settings'] ) ) {
echo '#wpseo-tabs #crawl-settings-tab{display: none;}'; // @since v3.x.x
echo '#wpseo-tabs #crawl-settings-tab{display: none;}'; // @since v3.14.10
}

// 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),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
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.14.10 include hiding "Redirects" submenu in its entirety
}

// hide Post/Page/Taxonomy Deletion Premium Ad
Expand Down Expand Up @@ -536,7 +536,7 @@ function i18n() {
*
* @return CUWS $_instance
*/
public static function instance( $file = '', $version = '3.14.9' ) {
public static function instance( $file = '', $version = '3.14.10' ) {
if ( null === self::$_instance ) {
self::$_instance = new self( $file, $version );
}
Expand Down
9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: hide, seo, bloat, remove, ads, cartoon, wordpress seo addon, admin columns
Requires at least: 4.9
Requires PHP: 5.6
Tested up to: 6.1
Stable tag: 3.14.9
Stable tag: 3.14.10
License: GPL-3.0+
License URI: http://www.gnu.org/licenses/gpl-3.0.txt

Expand All @@ -17,7 +17,7 @@ Almost anyone who uses the Yoast SEO plugin will agree that it is a good SEO plu

**New in this version:**

* hide "Connect Yoast SEO with Zapier"-text in post publish sidebar
* hide "Redirects"-submenu and hide "Crawl Settings"-tab

<hr>

Expand Down Expand Up @@ -111,6 +111,11 @@ Please open an issue on [Github](https://github.com/senlin/so-clean-up-wp-seo/is

== Changelog ==

= 3.14.10 =

* release date November 7, 2022
* hide ["Redirects"-submenu](https://github.com/senlin/so-clean-up-wp-seo/pull/103) and hide ["Crawl Settings"-tab](https://github.com/senlin/so-clean-up-wp-seo/pull/104), both courtesy of [Chris Johnson](https://github.com/workeffortwaste)

= 3.14.9 =

* release date November 7, 2022
Expand Down
4 changes: 2 additions & 2 deletions so-clean-up-wp-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Hide SEO Bloat
* Plugin URI: https://so-wp.com/plugin/hide-seo-bloat
* Description: Hide most of the bloat that the Yoast SEO plugin adds to your WordPress Dashboard
* Version: 3.14.9
* Version: 3.14.10
* Author: SO WP
* Author URI: https://so-wp.com
* License: GPL-3.0+
Expand Down Expand Up @@ -34,7 +34,7 @@
* @return object CUWS
*/
function CUWS () {
$instance = CUWS::instance( __FILE__, '3.14.9' );
$instance = CUWS::instance( __FILE__, '3.14.10' );

if ( null === $instance->settings ) {
$instance->settings = CUWS_Settings::instance( $instance );
Expand Down

0 comments on commit 06f9024

Please sign in to comment.