Skip to content

Commit

Permalink
commit v2.6.1
Browse files Browse the repository at this point in the history
* release date 2017.3.31
* revert admin columns settings that were changed in v2.6.0 (last
week): checkboxes return to select multiple options, title, meta
description and focus keyword can be selected again for "removal" and
additional checkbox for readability column
* remove [forgotten about nag
setting](https://wordpress.org/support/topic/i-have-updated-to-2-6-0-but
-still-see-setting-for-about-nag/)
* update readme.txt
  • Loading branch information
Piet Bos committed Mar 31, 2017
1 parent b6612a1 commit 89bc604
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 72 deletions.
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![plugin version](https://img.shields.io/wordpress/plugin/v/so-clean-up-wp-seo.svg)](https://wordpress.org/plugins/so-clean-up-wp-seo)

###### Last updated on 2017.3.24
###### Last updated on 2017.3.31
###### requires at least WordPress 4.7.2
###### tested up to WordPress 4.8
###### Author: [Piet Bos](https://github.com/senlin)
Expand All @@ -18,10 +18,13 @@ The purpose of the SO Hide SEO Bloat plugin, a free addon for the Yoast SEO plug
Since v2.0.0 we have a Settings page! With v2.1.0 we have less options on the Settings page, due to the 3.1 version release of the Yoast SEO plugin. It seems that team Yoast has finally seen the light as they have "_temporarily disabled all non-vital notifications_". Their changelog says that they are trying to come up with a "more user-friendly way" of dealing with these nags, basically admitting that they have been harassing their user-base.
Either way we welcome this development! Who knows? Perhaps in the future this plugin becomes completely redundant? ;)

With the settings page is that you can fine-tune what is hidden or removed to your liking. By default most of the bloat that the Yoast SEO plugin generates is hidden or removed, just like before when there were no settings yet.

It is a good idea to have a look at the Settings page if only to see what you can fine-tune. The link to the page has been added to the Yoast SEO menu and of course there is also a link to it from the Plugins page.

If you like the SO Hide SEO Bloat plugin, please consider leaving a [review](https://wordpress.org/support/view/plugin-reviews/so-clean-up-wp-seo?rate=5#postform). You can also help a great deal by [translating the plugin](https://translate.wordpress.org/projects/wp-plugins/so-clean-up-wp-seo) into your own language.
Alternatively you are welcome to make a [donation](https://so-wp.com/plugins/donations/). Thanks!

## Default Settings current release

The default settings of the current release are as follows:

* hide the cartoon-style sidebar ads on almost all settings pages of the Yoast SEO plugin
Expand All @@ -32,15 +35,13 @@ The default settings of the current release are as follows:
* hide content (readability) / keyword (seo) score in publish/update box on edit Post/Page
* hide readability tab and content analysis metabox item
* hide the issue counter (added to v3.3 of Yoast SEO plugin)
* hide the SEO Score and Readability admin columns on the Posts/Pages/Taxonomies screens
* hide the SEO Score, Readability, Title and Meta Description admin columns on the Posts/Pages screens; Focus keyword column can be hidden too
* hide the SEO Score and Readability admin columns on taxonomies (added to v3.1 of Yoast SEO plugin)
* hide the ad for the premium version in the help center or hide the whole help center (added to v3.2 of Yoast SEO plugin)
* hide the email support of the help center as it is a premium-only feature and therefore an "ad in disguise" (added to v4.4 of Yoast SEO plugin)
* hide the red star behind the "Go Premium" submenu text (added to v3.6 of Yoast plugin and changed again with v3.7)
* remove the Yoast SEO widget from the WordPress Dashboard

If you like the SO Hide SEO Bloat plugin, please consider leaving a [review](https://wordpress.org/support/view/plugin-reviews/so-clean-up-wp-seo?rate=5#postform). You can also help a great deal by [translating the plugin](https://translate.wordpress.org/projects/wp-plugins/so-clean-up-wp-seo) into your own language.
Alternatively you are welcome to make a [donation](https://so-wp.com/plugins/donations/). Thanks!

## Frequently Asked Questions

### Where is the settings page?
Expand Down Expand Up @@ -103,6 +104,13 @@ We welcome your contributions very much! PR's will be considered and of course b

## Changelog

### 2.6.1

* release date 2017.3.31
* revert admin columns settings that were changed in v2.6.0 (last week): checkboxes return to select multiple options, title, meta description and focus keyword can be selected again for "removal" and additional checkbox for readability column
* remove [forgotten about-nag setting](https://wordpress.org/support/topic/i-have-updated-to-2-6-0-but-still-see-setting-for-about-nag/)
* update readme.txt

### 2.6.0

* release date 2017.3.24
Expand Down
15 changes: 7 additions & 8 deletions includes/class-so-clean-up-wp-seo-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ public function __construct ( $parent ) {
public function update_network_setting() {
$options = array(
'hide_ads',
'hide_about_nag',
'hide_tagline_nag',
'hide_robots_nag',
'hide_upsell_notice',
Expand All @@ -98,7 +97,7 @@ public function update_network_setting() {
'hide_gopremium_star',
'hide_content_keyword_score',
'hide_helpcenter',
'hide_admin_columns',
'hide_admincolumns',
'remove_dbwidget'
);

Expand Down Expand Up @@ -227,7 +226,7 @@ private function settings_fields () {
array(
'id' => 'hide_wpseoanalysis',
'label' => __( 'Content analysis', 'so-clean-up-wp-seo' ),
'description' => __( 'Hide content analysis that adds colored balls to the edit Post/Page screens as well as Readability tab that contains the analysis.', 'so-clean-up-wp-seo' ),
'description' => __( 'Hide content analysis that adds colored balls to the edit Post/Page screens as well as Readability tab that contains the analysis.', 'so-clean-up-wp-seo' ),
'type' => 'checkbox',
'default' => 'on'
),
Expand Down Expand Up @@ -262,12 +261,12 @@ private function settings_fields () {
'default' => 'ad'
),
array(
'id' => 'hide_admin_columns',
'id' => 'hide_admincolumns',
'label' => __( 'Admin columns', 'so-clean-up-wp-seo' ),
'description' => __( 'The Yoast SEO plugin adds 2 admin columns on the Posts/Pages screen and to taxonomies, choose here which ones to hide (possible to select multiple, ticking minimum one box is <strong>required</strong>).', 'so-clean-up-wp-seo' ),
'type' => 'radio',
'options' => array( 'both' => __( 'Hide both', 'so-clean-up-wp-seo' ), 'seoscore' => __( 'Hide SEO score column', 'so-clean-up-wp-seo' ), 'readability' => __( 'Hide Readability score column', 'so-clean-up-wp-seo' ), 'none' => __( 'Show both columns', 'so-clean-up-wp-seo' ) ),
'default' => 'both'
'description' => __( 'The Yoast SEO plugin adds 5(!) admin columns on the Posts/Pages screen and the SEO Score?Readability admin columns to taxonomies (since Yoast SEO 3.1), choose here which ones to hide. It is possible to select multiple columns to hide and <strong>ticking minimum one box is required</strong>.<br> Although they can be easily hidden on a per user basis, this setting hides the column(s) globally.', 'so-clean-up-wp-seo' ),
'type' => 'checkbox_multi',
'options' => array( 'all' => __( 'Hide all columns', 'so-clean-up-wp-seo' ), 'seoscore' => __( 'Hide SEO score column', 'so-clean-up-wp-seo' ), 'readability' => __( 'Hide Readability score column', 'so-clean-up-wp-seo' ), 'title' => __( 'Hide title column', 'so-clean-up-wp-seo' ), 'metadescr' => __( 'Hide meta description column', 'so-clean-up-wp-seo' ), 'focuskw' => __( 'Hide focus keyword column', 'so-clean-up-wp-seo' ), 'none' => __( 'Show all columns', 'so-clean-up-wp-seo' ) ),
'default' => array( 'seoscore', 'readability', 'title', 'metadescr' )
),
array(
'id' => 'remove_dbwidget',
Expand Down
46 changes: 26 additions & 20 deletions includes/class-so-clean-up-wp-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class CUWS {
*
* @return void
*/
public function __construct ( $file = '', $version = '2.6.0' ) {
public function __construct ( $file = '', $version = '2.6.1' ) {
$this->_version = $version;
$this->_token = 'cuws';

Expand Down Expand Up @@ -174,11 +174,6 @@ public function so_cuws_hide_visibility_css() {
echo '#sidebar-container.wpseo_content_cell{visibility:hidden;}'; // @since v1.0.0
}

// about nag
if ( ! empty( $this->options['hide_about_nag'] ) ) {
echo '#wpseo-dismiss-about{display:none;}'; // @since v1.4.0 hide updated nag (introduced with Yoast SEO version 2.2.1)
}

// tagline nag
if ( ! empty( $this->options['hide_tagline_nag'] ) ) {
echo '#wpseo-dismiss-tagline-notice{display:none;}'; // @since v2.6.0 hide tagline nag
Expand Down Expand Up @@ -246,17 +241,30 @@ public function so_cuws_hide_visibility_css() {
// @modified 2.0.2 add empty array as default to avoid warnings form subsequent in_array checks - credits [Ronny Myhre Njaastad](https://github.com/ronnymn)
// @modified 2.1 simplyfy the CSS rules and add the rule to hide the seo-score column on taxonomies (added to v3.1 of Yoast SEO plugin)
// @modified 2.6.0 only 2 columns left change from checkboxes to radio

if ( 'both' == $this->options['hide_admin_columns'] ) {
echo '.column-wpseo-score,.column-wpseo_score,.column-wpseo-score-readability,.column-wpseo_score_readability{display:none;}';
// @modified 2.6.1 revert radio to checkboxes and removing the options for focus keyword, title and meta-description

// all columns
if ( in_array( 'all', $this->options['hide_admincolumns'] ) ) {
echo '.column-wpseo-score,.column-wpseo_score,.column-wpseo-score-readability,.column-wpseo_score_readability,.column-wpseo-title,.column-wpseo-metadesc,.column-wpseo-focuskw{display:none;}'; // @since v2.0.0 remove seo columns one by one
}

if ( 'seoscore' == $this->options['hide_admin_columns'] ) {
echo '.column-wpseo-score,.column-wpseo_score{display:none;}';
// seo score column
if ( in_array( 'seoscore', $this->options['hide_admincolumns'] ) ) {
echo '.column-wpseo-score,.column-wpseo_score{display:none;}'; // @since v2.0.0 remove seo columns one by one
}

if ( 'readability' == $this->options['hide_admin_columns'] ) {
echo '.column-wpseo-score-readability,.column-wpseo_score_readability{display:none;}';
if ( in_array( 'readability', $this->options['hide_admincolumns'] ) ) {
echo '.column-wpseo-score-readability,.column-wpseo_score_readability{display:none;}'; // @since v2.6.0 remove added readibility column
}
// title column
if ( in_array( 'title', $this->options['hide_admincolumns'] ) ) {
echo '.column-wpseo-title{display:none;}'; // @since v2.0.0 remove seo columns one by one
}
// meta description column
if ( in_array( 'metadescr', $this->options['hide_admincolumns'] ) ) {
echo '.column-wpseo-metadesc{display:none;}'; // @since v2.0.0 remove seo columns one by one
}
// focus keyword column
if ( in_array( 'focuskw', $this->options['hide_admincolumns'] ) ) {
echo '.column-wpseo-focuskw{display:none;}'; // @since v2.0.0 remove seo columns one by one
}

// help center
Expand Down Expand Up @@ -308,7 +316,7 @@ function i18n() {
*
* @return CUWS $_instance
*/
public static function instance( $file = '', $version = '2.6.0' ) {
public static function instance( $file = '', $version = '2.6.1' ) {
if ( null === self::$_instance ) {
self::$_instance = new self( $file, $version );
}
Expand Down Expand Up @@ -365,7 +373,6 @@ private function _log_version_number() {
*/
private function _set_defaults() {
update_site_option( 'cuws_hide_ads', 'on' );
update_site_option( 'cuws_hide_about_nag', 'on' );
update_site_option( 'cuws_hide_tagline_nag', 'on' );
update_site_option( 'cuws_hide_robots_nag', 'on' );
update_site_option( 'cuws_hide_upsell_notice', 'on' );
Expand All @@ -378,7 +385,7 @@ private function _set_defaults() {
update_site_option( 'cuws_hide_wpseoanalysis', 'on' );
update_site_option( 'cuws_hide_content_keyword_score', 'both' );
update_site_option( 'cuws_hide_helpcenter', 'ad' );
update_site_option( 'cuws_hide_admin_columns', 'both' );
update_site_option( 'hide_admincolumns', array( 'seoscore', 'readibility', 'title', 'metadescr' ) );
update_site_option( 'cuws_remove_dbwidget', 'on' );
} // End _set_defaults ()

Expand All @@ -392,7 +399,6 @@ public function get_settings_as_array() {
$settings = array();
$options = array(
'hide_ads',
'hide_about_nag',
'hide_tagline_nag',
'hide_robots_nag',
'hide_upsell_notice',
Expand All @@ -405,7 +411,7 @@ public function get_settings_as_array() {
'hide_gopremium_star',
'hide_content_keyword_score',
'hide_helpcenter',
'hide_admin_columns',
'hide_admincolumns',
'remove_dbwidget',
);

Expand Down
57 changes: 22 additions & 35 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://so-wp.com/plugins/donations
Tags: hide, seo, bloat, remove, ads, cartoon, wordpress seo addon, admin columns, nags, traffic light, dashboard widget, hide premium
Requires at least: 4.7.2
Tested up to: 4.8
Stable tag: 2.6.0
Stable tag: 2.6.1
License: GPL-3.0+
License URI: http://www.gnu.org/licenses/gpl-3.0.txt

Expand All @@ -19,10 +19,20 @@ The purpose of the SO Hide SEO Bloat plugin, a free addon for the Yoast SEO plug
Since v2.0.0 we have a Settings page! With v2.1.0 we have less options on the Settings page, due to the 3.1 version release of the Yoast SEO plugin. It seems that team Yoast has finally seen the light as they have "_temporarily disabled all non-vital notifications_". Their changelog says that they are trying to come up with a "more user-friendly way" of dealing with these nags, basically admitting that they have been harassing their user-base.
Either way we welcome this development! Who knows? Perhaps in the future this plugin becomes completely redundant? ;)

With the settings page is that you can fine-tune what is hidden or removed to your liking. By default most of the bloat that the Yoast SEO plugin generates is hidden or removed, just like before when there were no settings yet.

It is a good idea to have a look at the Settings page if only to see what you can fine-tune. The link to the page has been added to the Yoast SEO menu and of course there is also a link to it from the Plugins page.

We support this plugin exclusively through [Github](https://github.com/senlin/so-clean-up-wp-seo/issues). Therefore, if you have any questions, need help and/or want to make a feature request, please open an issue over at Github. You can also browse through open and closed issues to find what you are looking for and perhaps even help others.

**PLEASE DO NOT POST YOUR ISSUES VIA THE WORDPRESS FORUMS**

Thanks for your understanding and cooperation.

If you like the SO Hide SEO Bloat plugin, please consider leaving a [review](https://wordpress.org/support/view/plugin-reviews/so-clean-up-wp-seo?rate=5#postform). You can also help a great deal by [translating the plugin](https://translate.wordpress.org/projects/wp-plugins/so-clean-up-wp-seo) into your own language.
Alternatively you are welcome to make a [donation](https://so-wp.com/plugins/donations/). Thanks!


== Other Notes ==

The default settings of the current release are as follows:

* hide the cartoon-style sidebar ads on almost all settings pages of the Yoast SEO plugin
Expand All @@ -33,43 +43,13 @@ The default settings of the current release are as follows:
* hide content (readability) / keyword (seo) score in publish/update box on edit Post/Page
* hide readability tab and content analysis metabox item
* hide the issue counter (added to v3.3 of Yoast SEO plugin)
* hide the SEO Score and Readability admin columns on the Posts/Pages/Taxonomies screens
* hide the SEO Score, Readability, Title and Meta Description admin columns on the Posts/Pages screens; Focus keyword column can be hidden too
* hide the SEO Score and Readability admin columns on taxonomies (added to v3.1 of Yoast SEO plugin)
* hide the ad for the premium version in the help center or hide the whole help center (added to v3.2 of Yoast SEO plugin)
* hide the email support of the help center as it is a premium-only feature and therefore an "ad in disguise" (added to v4.4 of Yoast SEO plugin)
* hide the red star behind the "Go Premium" submenu text (added to v3.6 of Yoast plugin and changed again with v3.7)
* remove the Yoast SEO widget from the WordPress Dashboard

We support this plugin exclusively through [Github](https://github.com/senlin/so-clean-up-wp-seo/issues). Therefore, if you have any questions, need help and/or want to make a feature request, please open an issue over at Github. You can also browse through open and closed issues to find what you are looking for and perhaps even help others.

**PLEASE DO NOT POST YOUR ISSUES VIA THE WORDPRESS FORUMS**

Thanks for your understanding and cooperation.

If you like the SO Hide SEO Bloat plugin, please consider leaving a [review](https://wordpress.org/support/view/plugin-reviews/so-clean-up-wp-seo?rate=5#postform). You can also help a great deal by [translating the plugin](https://translate.wordpress.org/projects/wp-plugins/so-clean-up-wp-seo) into your own language.
Alternatively you are welcome to make a [donation](https://so-wp.com/plugins/donations/). Thanks!


== Installation ==

= WordPress =

Search for "SO Hide SEO Bloat" and install with the **Plugins > Add New** back-end page.

&hellip; OR &hellip;

Follow these steps:

1. Download zip file.

2. Upload the zip file via the Plugins > Add New > Upload page &hellip; OR &hellip; unpack and upload with your favourite FTP client to the /plugins/ folder.

3. Activate the plugin on the Plugins page.

4. Visit the Settings page.

Done!


== Frequently Asked Questions ==

= Where is the settings page? =
Expand Down Expand Up @@ -113,6 +93,13 @@ Please open an issue on [Github](https://github.com/senlin/so-clean-up-wp-seo/is

== Changelog ==

= 2.6.1 =

* release date 2017.3.31
* revert admin columns settings that were changed in v2.6.0 (last week): checkboxes return to select multiple options, title, meta description and focus keyword can be selected again for "removal" and additional checkbox for readability column
* remove [forgotten about nag setting](https://wordpress.org/support/topic/i-have-updated-to-2-6-0-but-still-see-setting-for-about-nag/)
* update readme.txt

= 2.6.0 =

* release date 2017.3.24
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: SO Hide SEO Bloat
* Plugin URI: https://so-wp.com/plugin/so-clean-up-wp-seo/
* Description: Hide most of the bloat that the Yoast SEO plugin adds to your WordPress Dashboard
* Version: 2.6.0
* Version: 2.6.1
* Author: SO WP
* Author URI: https://so-wp.com/plugins/
* Text Domain: so-clean-up-wp-seo
Expand All @@ -30,7 +30,7 @@
* @return object CUWS
*/
function CUWS () {
$instance = CUWS::instance( __FILE__, '2.6.0' );
$instance = CUWS::instance( __FILE__, '2.6.1' );

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

0 comments on commit 89bc604

Please sign in to comment.