WooSidebars - Version 1.4.5

Version Description

Fixes a fatal error, by removing the no longer relevant contextual help.

Download this release

Release Info

Developer mattyza
Plugin Icon wp plugin WooSidebars
Version 1.4.5
Comparing to
See all releases

Code changes from version 1.4.4 to 1.4.5

changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  *** WooSidebars Changelog ***
2
 
 
 
 
3
  2018.06.08 - version 1.4.4
4
  * New - Enable a widget area for "a page and it's children".
5
  * Fix - Error notice when on a page without a defined screen_id.
1
  *** WooSidebars Changelog ***
2
 
3
+ 2018.06.18 - version 1.4.5
4
+ * Fix - Fixes a fatal error, by removing the no longer relevant contextual help.
5
+
6
  2018.06.08 - version 1.4.4
7
  * New - Enable a widget area for "a page and it's children".
8
  * Fix - Error notice when on a page without a defined screen_id.
classes/class-woo-sidebars.php CHANGED
@@ -46,7 +46,6 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
46
  * - add_post_column_data()
47
  * - enable_custom_post_sidebars()
48
  * - multidimensional_search()
49
- * - add_contextual_help()
50
  *
51
  * - load_localisation()
52
  * - activation()
@@ -107,7 +106,6 @@ class Woo_Sidebars {
107
  global $pagenow;
108
 
109
  add_action( 'admin_print_styles', array( $this, 'enqueue_styles' ), 12 );
110
- add_action( 'admin_head', array( $this, 'add_contextual_help' ) );
111
  if ( $pagenow == 'edit.php' && isset( $_GET['post_type'] ) && esc_attr( $_GET['post_type'] ) == $this->token ) {
112
  add_filter( 'manage_edit-' . $this->token . '_columns', array( $this, 'register_custom_column_headings' ), 10, 1 );
113
  add_action( 'manage_posts_custom_column', array( $this, 'register_custom_columns' ), 10, 2 );
@@ -744,44 +742,6 @@ class Woo_Sidebars {
744
  return false;
745
  } // End multidimensional_search()
746
 
747
- /**
748
- * add_contextual_help function.
749
- *
750
- * @description Add contextual help to the current screen.
751
- * @access public
752
- * @since 1.0.0
753
- * @return void
754
- */
755
- public function add_contextual_help () {
756
- if ( empty( get_current_screen() ) || get_current_screen()->id != 'edit-sidebar' ) { return; }
757
-
758
- get_current_screen()->add_help_tab( array(
759
- 'id' => 'overview',
760
- 'title' => __( 'Overview', 'woosidebars' ),
761
- 'content' =>
762
- '<p>' . __( 'All custom widget areas are listed on this screen. To add a new customised widget area, click the "Add New" button.', 'woosidebars' ) . '</p>'
763
- ) );
764
- get_current_screen()->add_help_tab( array(
765
- 'id' => 'wooframework-sbm',
766
- 'title' => __( 'Sidebar Manager', 'woosidebars' ),
767
- 'content' =>
768
- '<p>' . __( 'WooSidebars is intended to replace the Sidebar Manager found in the WooFramework. Please ensure that all sidebars have been transferred over from the Sidebar Manager, if you choose to use WooSidebars instead.', 'woosidebars' ) . '</p>' .
769
- '<p>' . __( 'To transfer a sidebar from the Sidebar Manager:', 'woosidebars' ) . '</p>' .
770
- '<ul>' . "\n" .
771
- '<li>' . __( 'Create a new custom widget area in WooSidebars.', 'woosidebars' ) . '</li>' . "\n" .
772
- '<li>' . sprintf( __( 'Visit the %sAppearance &rarr; Widgets%s screen and drag the widgets from the old sidebar into the newly created sidebar.', 'woosidebars' ), '<a href="' . esc_url( admin_url( 'widgets.php' ) ) . '">', '</a>' ) . '</li>' . "\n" .
773
- '<li>' . __( 'Repeat this process for each of your custom sidebars, including dependencies if necessary (the WooSidebars conditions system replaces the need for dependencies).', 'woosidebars' ) . '</li>' . "\n" .
774
- '<li>' . __( 'Once you are certain that you widgets have been moved across for all widget areas, remove the sidebar from the Sidebar Manager (don\'t forget to transfer any dependencies over as well, if necessary).', 'woosidebars' ) . '</li>' . "\n" .
775
- '</ul>' . "\n"
776
- ) );
777
-
778
- get_current_screen()->set_help_sidebar(
779
- '<p><strong>' . __( 'For more information:', 'woosidebars' ) . '</strong></p>' .
780
- '<p><a href="http://support.woothemes.com/?ref=' . 'woosidebars' . '" target="_blank">' . __( 'Support HelpDesk', 'woosidebars' ) . '</a></p>' .
781
- '<p><a href="http://docs.woothemes.com/document/woosidebars/?ref=' . 'woosidebars' . '" target="_blank">' . __( 'WooSidebars Documentation', 'woosidebars' ) . '</a></p>'
782
- );
783
- } // End add_contextual_help()
784
-
785
  /**
786
  * load_localisation function.
787
  *
46
  * - add_post_column_data()
47
  * - enable_custom_post_sidebars()
48
  * - multidimensional_search()
 
49
  *
50
  * - load_localisation()
51
  * - activation()
106
  global $pagenow;
107
 
108
  add_action( 'admin_print_styles', array( $this, 'enqueue_styles' ), 12 );
 
109
  if ( $pagenow == 'edit.php' && isset( $_GET['post_type'] ) && esc_attr( $_GET['post_type'] ) == $this->token ) {
110
  add_filter( 'manage_edit-' . $this->token . '_columns', array( $this, 'register_custom_column_headings' ), 10, 1 );
111
  add_action( 'manage_posts_custom_column', array( $this, 'register_custom_columns' ), 10, 2 );
742
  return false;
743
  } // End multidimensional_search()
744
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
745
  /**
746
  * load_localisation function.
747
  *
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: woothemes, Automattic, mattyza
3
  Tags: widgets, sidebars, widget-areas
4
  Requires at least: 4.1
5
- Tested up to: 4.6.5
6
- Stable tag: 1.4.4
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -69,6 +69,9 @@ Looking to contribute code to this plugin? [Fork the repository over at GitHub](
69
 
70
  == Upgrade Notice ==
71
 
 
 
 
72
  = 1.4.4 =
73
  Bug fix and maintenance release. Enables "pages and their children" as a widget area condition.
74
 
@@ -102,6 +105,10 @@ Moved to WordPress.org. Woo! Added scope to methods and properties where missing
102
 
103
  == Changelog ==
104
 
 
 
 
 
105
  = 1.4.4 =
106
  * 2018-06-08
107
  * Bug fix and maintenance release. Enables "pages and their children" as a widget area condition.
2
  Contributors: woothemes, Automattic, mattyza
3
  Tags: widgets, sidebars, widget-areas
4
  Requires at least: 4.1
5
+ Tested up to: 4.9.6
6
+ Stable tag: 1.4.5
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
69
 
70
  == Upgrade Notice ==
71
 
72
+ = 1.4.5 =
73
+ Fixes a fatal error, by removing the no longer relevant contextual help.
74
+
75
  = 1.4.4 =
76
  Bug fix and maintenance release. Enables "pages and their children" as a widget area condition.
77
 
105
 
106
  == Changelog ==
107
 
108
+ = 1.4.5 =
109
+ * 2018-06-18
110
+ * Fixes a fatal error, by removing the no longer relevant contextual help.
111
+
112
  = 1.4.4 =
113
  * 2018-06-08
114
  * Bug fix and maintenance release. Enables "pages and their children" as a widget area condition.
woosidebars.php CHANGED
@@ -5,10 +5,10 @@
5
  * Description: Replace widget areas in your theme for specific pages, archives and other sections of WordPress.
6
  * Author: WooCommerce
7
  * Author URI: http://woocommerce.com/
8
- * Version: 1.4.4
9
- * Stable tag: 1.4.4
10
  * Requires at least: 4.1
11
- * Tested up to: 4.6.5
12
  * License: GPL v3 or later - http://www.gnu.org/licenses/gpl-3.0.html
13
  * Text Domain: woosidebars
14
  * Domain Path: /lang
@@ -30,5 +30,5 @@ if ( class_exists( 'Woocommerce' ) ) {
30
 
31
  global $woosidebars;
32
  $woosidebars = new Woo_Sidebars( __FILE__ );
33
- $woosidebars->version = '1.4.4';
34
  $woosidebars->init();
5
  * Description: Replace widget areas in your theme for specific pages, archives and other sections of WordPress.
6
  * Author: WooCommerce
7
  * Author URI: http://woocommerce.com/
8
+ * Version: 1.4.5
9
+ * Stable tag: 1.4.5
10
  * Requires at least: 4.1
11
+ * Tested up to: 4.9.6
12
  * License: GPL v3 or later - http://www.gnu.org/licenses/gpl-3.0.html
13
  * Text Domain: woosidebars
14
  * Domain Path: /lang
30
 
31
  global $woosidebars;
32
  $woosidebars = new Woo_Sidebars( __FILE__ );
33
+ $woosidebars->version = '1.4.5';
34
  $woosidebars->init();