Widget Content Blocks - Version 2.2.6

Version Description

  • October 30, 2013 =
  • Fixed: Show title checkbox now defaults to a checked state.
Download this release

Release Info

Developer DvanKooten
Plugin Icon wp plugin Widget Content Blocks
Version 2.2.6
Comparing to
See all releases

Code changes from version 2.2.5 to 2.2.6

includes/WYSIWYG_Widgets_Widget.php CHANGED
@@ -23,7 +23,7 @@ class WYSIWYG_Widgets_Widget extends WP_Widget
23
  $id = $instance['wysiwyg-widget-id'];
24
 
25
  $title = apply_filters( 'widget_title', $instance['title'] );
26
- $show_title = (isset($instance['show_title']) && $instance['show_title']) ? 1 : 0;
27
  $post = get_post($id);
28
 
29
  echo $before_widget;
@@ -34,7 +34,7 @@ class WYSIWYG_Widgets_Widget extends WP_Widget
34
  $content = $post->post_content;
35
  $content = do_shortcode($content);
36
  $content = "\n<!-- Widget by WYSIWYG Widgets v". WYWI_VERSION_NUMBER ." - http://wordpress.org/plugins/wysiwyg-widgets/ -->\n" . wpautop($content) . "\n<!-- / WYSIWYG Widgets -->\n";
37
- echo $content;
38
  } elseif(current_user_can('manage_options')) { ?>
39
  <p>
40
  <?php if(empty($id)) { ?>
@@ -93,7 +93,7 @@ class WYSIWYG_Widgets_Widget extends WP_Widget
93
  ));
94
 
95
  $title = isset($instance['title']) ? $instance['title'] : '';
96
- $show_title = (isset($instance['show_title']) && $instance['show_title']) ? 1 : 0;
97
  $selected_widget_id = (isset($instance['wysiwyg-widget-id'])) ? $instance['wysiwyg-widget-id'] : 0;
98
  ?>
99
 
23
  $id = $instance['wysiwyg-widget-id'];
24
 
25
  $title = apply_filters( 'widget_title', $instance['title'] );
26
+ $show_title = (isset($instance['show_title'])) ? $instance['show_title'] : 1;
27
  $post = get_post($id);
28
 
29
  echo $before_widget;
34
  $content = $post->post_content;
35
  $content = do_shortcode($content);
36
  $content = "\n<!-- Widget by WYSIWYG Widgets v". WYWI_VERSION_NUMBER ." - http://wordpress.org/plugins/wysiwyg-widgets/ -->\n" . wpautop($content) . "\n<!-- / WYSIWYG Widgets -->\n";
37
+ echo apply_filters('ww_content', $content, $id);
38
  } elseif(current_user_can('manage_options')) { ?>
39
  <p>
40
  <?php if(empty($id)) { ?>
93
  ));
94
 
95
  $title = isset($instance['title']) ? $instance['title'] : '';
96
+ $show_title = (isset($instance['show_title'])) ? $instance['show_title'] : 1;
97
  $selected_widget_id = (isset($instance['wysiwyg-widget-id'])) ? $instance['wysiwyg-widget-id'] : 0;
98
  ?>
99
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://dannyvankooten.com/donate/
4
  Tags: visual,tinymce,fckeditor,widget,widgets,rich text,wysiwyg,image widget,visual editor,html
5
  Requires at least: 3.1
6
  Tested up to: 3.7
7
- Stable tag: 2.2.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -66,6 +66,8 @@ Yes, totally. Donations are appreciated though!
66
  3. Drag the WYSIWYG Widget to one of your widget areas and select the Widget Block to show.
67
 
68
  == Changelog ==
 
 
69
 
70
  = 2.2.5 - October 26, 2013 =
71
  * Added checkbox option to widget to hide the title.
4
  Tags: visual,tinymce,fckeditor,widget,widgets,rich text,wysiwyg,image widget,visual editor,html
5
  Requires at least: 3.1
6
  Tested up to: 3.7
7
+ Stable tag: 2.2.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
66
  3. Drag the WYSIWYG Widget to one of your widget areas and select the Widget Block to show.
67
 
68
  == Changelog ==
69
+ = 2.2.6 - October 30, 2013 =
70
+ * Fixed: Show title checkbox now defaults to a checked state.
71
 
72
  = 2.2.5 - October 26, 2013 =
73
  * Added checkbox option to widget to hide the title.
wysiwyg-widgets.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WYSIWYG Widgets
4
  Plugin URI: http://DannyvanKooten.com/wordpress-plugins/wysiwyg-widgets/
5
  Description: Adds a WYSIWYG Widget with a rich text editor and media upload functions.
6
- Version: 2.2.5
7
  Author: Danny van Kooten
8
  Author URI: http://DannyvanKooten.com
9
  License: GPL2
@@ -25,7 +25,7 @@ License: GPL2
25
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
  */
27
 
28
- define("WYWI_VERSION_NUMBER", "2.2.5");
29
  define("WYWI_PLUGIN_DIR", plugin_dir_path(__FILE__));
30
 
31
  require_once WYWI_PLUGIN_DIR . 'includes/WYSIWYG_Widgets.php';
3
  Plugin Name: WYSIWYG Widgets
4
  Plugin URI: http://DannyvanKooten.com/wordpress-plugins/wysiwyg-widgets/
5
  Description: Adds a WYSIWYG Widget with a rich text editor and media upload functions.
6
+ Version: 2.2.6
7
  Author: Danny van Kooten
8
  Author URI: http://DannyvanKooten.com
9
  License: GPL2
25
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
  */
27
 
28
+ define("WYWI_VERSION_NUMBER", "2.2.6");
29
  define("WYWI_PLUGIN_DIR", plugin_dir_path(__FILE__));
30
 
31
  require_once WYWI_PLUGIN_DIR . 'includes/WYSIWYG_Widgets.php';