Widgets on Pages - Version 1.0.1

Version Description

  1. Fixed issue with php warning when styling checkbox was unchecked.
Download this release

Release Info

Developer toddhalfpenny
Plugin Icon 128x128 Widgets on Pages
Version 1.0.1
Comparing to
See all releases

Code changes from version 1.0.0 to 1.0.1

public/class-widgets-on-pages-public.php CHANGED
@@ -118,7 +118,11 @@ class Widgets_On_Pages_Public {
118
  * class.
119
  */
120
 
121
- if ( array_key_exists( 'enable_css', get_option( 'wop_options_field' ) ) ) {
 
 
 
 
122
  $enable_css = get_option( 'wop_options_field' )['enable_css'];
123
  // $enable_css = $options["enable_css"];
124
  if ( $enable_css ) {
118
  * class.
119
  */
120
 
121
+ $options = get_option( 'wop_options_field' );
122
+ if ( ! is_array( $options ) ) {
123
+ $options = array();
124
+ }
125
+ if ( array_key_exists( 'enable_css', $options ) ) {
126
  $enable_css = get_option( 'wop_options_field' )['enable_css'];
127
  // $enable_css = $options["enable_css"];
128
  if ( $enable_css ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://datamad.co.uk/donate/
4
  Tags: widgets, widgets in page, widgets in post, sidebar, pages, post, shortcode, inline, widgetise, widgetize
5
  Requires at least: 2.8
6
  Tested up to: 4.7.3
7
- Stable tag: 1.0.0
8
 
9
  The easiest and highest rated way to Add Widgets or Sidebars to Posts and Pages using shortcodes or template tags.
10
 
@@ -61,6 +61,10 @@ Yes... you can have an unlimited number of sidebars defined. The number availabl
61
 
62
  == Changelog ==
63
 
 
 
 
 
64
  = 1.0.0 =
65
 
66
  1. Re-written to use OO approach and best practices, using the [WordPress Plugin Boilerplate](https://github.com/DevinVinson/WordPress-Plugin-Boilerplate) project and [WordPress Coding Standards](https://codex.wordpress.org/WordPress_Coding_Standards)
4
  Tags: widgets, widgets in page, widgets in post, sidebar, pages, post, shortcode, inline, widgetise, widgetize
5
  Requires at least: 2.8
6
  Tested up to: 4.7.3
7
+ Stable tag: 1.0.1
8
 
9
  The easiest and highest rated way to Add Widgets or Sidebars to Posts and Pages using shortcodes or template tags.
10
 
61
 
62
  == Changelog ==
63
 
64
+ = 1.0.1 =
65
+ 1. Fixed issue with php warning when styling checkbox was unchecked.
66
+
67
+
68
  = 1.0.0 =
69
 
70
  1. Re-written to use OO approach and best practices, using the [WordPress Plugin Boilerplate](https://github.com/DevinVinson/WordPress-Plugin-Boilerplate) project and [WordPress Coding Standards](https://codex.wordpress.org/WordPress_Coding_Standards)
widgets_on_pages.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: Widgets On Pages
11
  * Plugin URI: https://datamad.co.uk/widgets-on-pages
12
  * Description: The easiest way to Add Widgets or Sidebars to Posts and Pages using shortcodes or template tags.
13
- * Version: 1.0.0
14
  * Author: Todd Halfpenny
15
  * Author URI: http://toddhalfpenny.com/
16
  * License: GPL-2.0+
10
  * Plugin Name: Widgets On Pages
11
  * Plugin URI: https://datamad.co.uk/widgets-on-pages
12
  * Description: The easiest way to Add Widgets or Sidebars to Posts and Pages using shortcodes or template tags.
13
+ * Version: 1.0.1
14
  * Author: Todd Halfpenny
15
  * Author URI: http://toddhalfpenny.com/
16
  * License: GPL-2.0+