WP Easy Columns - Version 2.1.3

Version Description

  • Fixed error with WP 3.9 tinyMCE shortcode insertion
  • Deleting the plugin no longer throws an error
Download this release

Release Info

Developer kcfried
Plugin Icon wp plugin WP Easy Columns
Version 2.1.3
Comparing to
See all releases

Code changes from version 2.1.2 to 2.1.3

easy-columns.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Easy Columns
4
  Plugin URI: http://www.patrickfriedl.com/
5
- Version: v2.1.2
6
  Author: <a href="http://www.patrickfriedl.com">Pat Friedl</a>
7
  Description: Easy Columns provides the shortcodes to create a grid system or magazine style columns for laying out your pages just the way you need them. Using shortcodes for 1/4, 1/2, 1/3, 2/3, 3/4, 1/5, 2/5, and 3/5 columns, you can insert <strong>at least thirty</strong> unique variations of columns on any page and even in posts! Quickly add columns to your pages from the editor with an easy to use "pick n' click" interface! For usage and more information, visit <a href="http://www.patrickfriedl.com" target="_blank">patrickfriedl.com</a>.
8
 
@@ -95,6 +95,11 @@ if(!class_exists("EasyColumns")){
95
  add_shortcode('ezcol_4fifth', array(&$this, 'four_fifth'));
96
  add_shortcode('ezcol_4fifth_end', array(&$this, 'four_fifth_end'));
97
  add_shortcode('ezdiv', array(&$this, 'div'));
 
 
 
 
 
98
  add_shortcode('ezcol_divider', array(&$this, 'add_divider'));
99
  add_shortcode('ezcol_end_right', array(&$this, 'end_column_right'));
100
  add_shortcode('ezcol_end_left', array(&$this, 'end_column_left'));
@@ -456,7 +461,7 @@ if(!class_exists("EasyColumns")){
456
  uninstall the plugin - removes options
457
  */
458
  function uninstall() {
459
- delete_option($this->ez_columns_options_name);
460
  } // end uninstall
461
 
462
 
2
  /*
3
  Plugin Name: Easy Columns
4
  Plugin URI: http://www.patrickfriedl.com/
5
+ Version: v2.1.3
6
  Author: <a href="http://www.patrickfriedl.com">Pat Friedl</a>
7
  Description: Easy Columns provides the shortcodes to create a grid system or magazine style columns for laying out your pages just the way you need them. Using shortcodes for 1/4, 1/2, 1/3, 2/3, 3/4, 1/5, 2/5, and 3/5 columns, you can insert <strong>at least thirty</strong> unique variations of columns on any page and even in posts! Quickly add columns to your pages from the editor with an easy to use "pick n' click" interface! For usage and more information, visit <a href="http://www.patrickfriedl.com" target="_blank">patrickfriedl.com</a>.
8
 
95
  add_shortcode('ezcol_4fifth', array(&$this, 'four_fifth'));
96
  add_shortcode('ezcol_4fifth_end', array(&$this, 'four_fifth_end'));
97
  add_shortcode('ezdiv', array(&$this, 'div'));
98
+ add_shortcode('ezdiv1', array(&$this, 'div'));
99
+ add_shortcode('ezdiv2', array(&$this, 'div'));
100
+ add_shortcode('ezdiv3', array(&$this, 'div'));
101
+ add_shortcode('ezdiv4', array(&$this, 'div'));
102
+ add_shortcode('ezdiv5', array(&$this, 'div'));
103
  add_shortcode('ezcol_divider', array(&$this, 'add_divider'));
104
  add_shortcode('ezcol_end_right', array(&$this, 'end_column_right'));
105
  add_shortcode('ezcol_end_left', array(&$this, 'end_column_left'));
461
  uninstall the plugin - removes options
462
  */
463
  function uninstall() {
464
+ delete_option('easycol_options');
465
  } // end uninstall
466
 
467
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Pat Friedl
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=donations&business=T8V954QPLEW2J
4
  Tags: columns, column, grid layout, box, boxes, feature box, layout, magazine, page, posts, magazine columns, magazine layout, float div
5
  Requires at least: 2.7
6
- Tested up to: 3.6.1
7
- Stable tag: 2.1.2
8
 
9
  Easy Columns provides the shortcodes to create a grid system or magazine style columns for laying out your pages (or even posts!) just the way you need them.
10
 
@@ -24,7 +24,7 @@ To create content with 3 columns, you would use the shortcodes like this:
24
 
25
  [ezcol_1third]this is column 1[/ezcol_1third]
26
  [ezcol_1third]this is column 2[/ezcol_1third]
27
- [ezcol_1third_end]this is column 3[/ezcol_1third_end]
28
 
29
  The result are 3 columns about 33% in width of their container.
30
 
@@ -112,6 +112,10 @@ Upgrade normally via your Wordpress admin -> Plugins panel.
112
 
113
  == Changelog ==
114
 
 
 
 
 
115
  = 2.1.2 =
116
  * Changed the tinyMCE window to load wp-load.php instead of wp-config.php
117
  * Added jQuery to tinyMCE window
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=donations&business=T8V954QPLEW2J
4
  Tags: columns, column, grid layout, box, boxes, feature box, layout, magazine, page, posts, magazine columns, magazine layout, float div
5
  Requires at least: 2.7
6
+ Tested up to: 3.9
7
+ Stable tag: 2.1.3
8
 
9
  Easy Columns provides the shortcodes to create a grid system or magazine style columns for laying out your pages (or even posts!) just the way you need them.
10
 
24
 
25
  [ezcol_1third]this is column 1[/ezcol_1third]
26
  [ezcol_1third]this is column 2[/ezcol_1third]
27
+ [ezcol_1third_end]this is column 3[/ezcol_1third_end]
28
 
29
  The result are 3 columns about 33% in width of their container.
30
 
112
 
113
  == Changelog ==
114
 
115
+ = 2.1.3 =
116
+ * Fixed error with WP 3.9 tinyMCE shortcode insertion
117
+ * Deleting the plugin no longer throws an error
118
+
119
  = 2.1.2 =
120
  * Changed the tinyMCE window to load wp-load.php instead of wp-config.php
121
  * Added jQuery to tinyMCE window
tinymce/editor_plugin.js CHANGED
@@ -18,8 +18,8 @@
18
  ed.addCommand('mceEZColumns', function() {
19
  ed.windowManager.open({
20
  file : url + '/window.php?',
21
- width : 764 + ed.getLang('ezColumns.delta_width', 0),
22
- height : 520 + ed.getLang('ezColumns.delta_height', 0),
23
  inline : 1
24
  }, {
25
  plugin_url : url // Plugin absolute URL
@@ -48,10 +48,10 @@
48
  getInfo : function() {
49
  return {
50
  longname : 'Easy Columns',
51
- author : 'PatFriedl.com',
52
  authorurl : 'http://patfriedl.com',
53
  infourl : 'http://patfriedl.com',
54
- version : "1.0"
55
  };
56
  }
57
  });
18
  ed.addCommand('mceEZColumns', function() {
19
  ed.windowManager.open({
20
  file : url + '/window.php?',
21
+ width : 780 + ed.getLang('ezColumns.delta_width', 0),
22
+ height : 560 + ed.getLang('ezColumns.delta_height', 0),
23
  inline : 1
24
  }, {
25
  plugin_url : url // Plugin absolute URL
48
  getInfo : function() {
49
  return {
50
  longname : 'Easy Columns',
51
+ author : 'Pat Friedl',
52
  authorurl : 'http://patfriedl.com',
53
  infourl : 'http://patfriedl.com',
54
+ version : "2.1.3"
55
  };
56
  }
57
  });
tinymce/window.php CHANGED
@@ -255,7 +255,11 @@ function insertClear(){
255
 
256
  function insertText(){
257
  if(window.tinyMCE) {
258
- window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, colTxt);
 
 
 
 
259
  tinyMCEPopup.editor.execCommand('mceRepaint');
260
  tinyMCEPopup.close();
261
  }
255
 
256
  function insertText(){
257
  if(window.tinyMCE) {
258
+ if(window.tinyMCE.execInstanceCommand){
259
+ window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, colTxt);
260
+ } else {
261
+ window.tinymce.activeEditor.execCommand('mceInsertContent', false, colTxt);
262
+ }
263
  tinyMCEPopup.editor.execCommand('mceRepaint');
264
  tinyMCEPopup.close();
265
  }