Widget Content Blocks - Version 2.3.4

Version Description

  • December 20, 2013 =
  • Fixed: Paragraphs inside or after shortcodes
  • Improved: Changed widget name for more consistency
Download this release

Release Info

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

Code changes from version 2.3.3 to 2.3.4

includes/class-admin.php CHANGED
@@ -5,9 +5,23 @@ class WYSIWYG_Widgets_Admin
5
 
6
  public function __construct()
7
  {
 
8
  add_action( 'add_meta_boxes', array($this, 'add_meta_box'), 20 );
9
  }
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  public function add_meta_box()
12
  {
13
  add_meta_box(
5
 
6
  public function __construct()
7
  {
8
+ //add_action('init', array($this, 'add_caps') );
9
  add_action( 'add_meta_boxes', array($this, 'add_meta_box'), 20 );
10
  }
11
 
12
+ public function add_caps() {
13
+ $caps_version = '1.1';
14
+
15
+ // did we add the caps already?
16
+ if( version_compare(get_option('wywi_caps_version', 0), $caps_version, '>=') ) {
17
+ return;
18
+ }
19
+
20
+ $role = get_role('administrator');
21
+ $role->add_cap('edit_widget_block');
22
+ //update_option('wywi_caps_version', $caps_version);
23
+ }
24
+
25
  public function add_meta_box()
26
  {
27
  add_meta_box(
includes/class-widget.php CHANGED
@@ -5,7 +5,7 @@ class WYSIWYG_Widgets_Widget extends WP_Widget
5
  public function __construct() {
6
  parent::__construct(
7
  'wysiwyg_widgets_widget', // Base ID
8
- 'WYSIWYG Widget', // Name
9
  array( 'description' => __('Displays one of your Widget Blocks.', 'wysiwyg-widgets') ) // Args
10
  );
11
 
@@ -13,8 +13,8 @@ class WYSIWYG_Widgets_Widget extends WP_Widget
13
  add_filter( 'ww_content', 'convert_smilies' );
14
  add_filter( 'ww_content', 'convert_chars' );
15
  add_filter( 'ww_content', 'wpautop' );
16
- add_filter( 'ww_content', 'do_shortcode' );
17
  add_filter( 'ww_content', 'shortcode_unautop' );
 
18
  }
19
 
20
  /**
5
  public function __construct() {
6
  parent::__construct(
7
  'wysiwyg_widgets_widget', // Base ID
8
+ 'Widget Blocks Widget', // Name
9
  array( 'description' => __('Displays one of your Widget Blocks.', 'wysiwyg-widgets') ) // Args
10
  );
11
 
13
  add_filter( 'ww_content', 'convert_smilies' );
14
  add_filter( 'ww_content', 'convert_chars' );
15
  add_filter( 'ww_content', 'wpautop' );
 
16
  add_filter( 'ww_content', 'shortcode_unautop' );
17
+ add_filter( 'ww_content', 'do_shortcode', 11);
18
  }
19
 
20
  /**
includes/plugin.php CHANGED
@@ -33,8 +33,7 @@ function wywi_register_post_type() {
33
  'public' => false,
34
  'show_ui' => true,
35
  'labels' => $labels,
36
- 'supports' => array('title', 'editor'),
37
- 'map_meta_cap' => true
38
  );
39
 
40
  register_post_type( 'wysiwyg-widget', $args );
33
  'public' => false,
34
  'show_ui' => true,
35
  'labels' => $labels,
36
+ 'supports' => array('title', 'editor')
 
37
  );
38
 
39
  register_post_type( 'wysiwyg-widget', $args );
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: DvanKooten
3
  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.1
7
- Stable tag: 2.3.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -79,6 +79,10 @@ Yes, totally. Donations are appreciated though!
79
 
80
  == Changelog ==
81
 
 
 
 
 
82
  = 2.3.3 - November 18, 2013 =
83
  * Added: Italian translations, thanks to [Tiziano D'Angelo](http://www.dangelos.it/)
84
  * Improved: Code loading
3
  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.8
7
+ Stable tag: 2.3.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
79
 
80
  == Changelog ==
81
 
82
+ = 2.3.4 - December 20, 2013 =
83
+ * Fixed: Paragraphs inside or after shortcodes
84
+ * Improved: Changed widget name for more consistency
85
+
86
  = 2.3.3 - November 18, 2013 =
87
  * Added: Italian translations, thanks to [Tiziano D'Angelo](http://www.dangelos.it/)
88
  * Improved: Code loading
wysiwyg-widgets.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
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.3.3
7
  Author: Danny van Kooten
8
  Author URI: http://DannyvanKooten.com
9
  Text Domain: wysiwyg-widgets
@@ -30,7 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
30
 
31
  if ( ! defined( 'ABSPATH' ) ) exit;
32
 
33
- define("WYWI_VERSION_NUMBER", "2.3.3");
34
  define("WYWI_PLUGIN_DIR", plugin_dir_path(__FILE__));
35
 
36
  require_once WYWI_PLUGIN_DIR . 'includes/plugin.php';
1
  <?php
2
  /*
3
+ Plugin Name: WYSIWYG Widgets / Widget Blocks
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.3.4
7
  Author: Danny van Kooten
8
  Author URI: http://DannyvanKooten.com
9
  Text Domain: wysiwyg-widgets
30
 
31
  if ( ! defined( 'ABSPATH' ) ) exit;
32
 
33
+ define("WYWI_VERSION_NUMBER", "2.3.4");
34
  define("WYWI_PLUGIN_DIR", plugin_dir_path(__FILE__));
35
 
36
  require_once WYWI_PLUGIN_DIR . 'includes/plugin.php';