Lightweight Grid Columns - Version 0.4

Version Description

  • Show TinyMCE icon on all post types
Download this release

Release Info

Developer edge22
Plugin Icon 128x128 Lightweight Grid Columns
Version 0.4
Comparing to
See all releases

Code changes from version 0.3 to 0.4

Files changed (3) hide show
  1. changelog.txt +5 -0
  2. lightweight-grid-columns.php +3 -9
  3. readme.txt +7 -1
changelog.txt CHANGED
@@ -10,6 +10,11 @@ Changelog Legend:
10
 
11
  ----
12
 
 
 
 
 
 
13
  (6/19/2015) - 0.3
14
  [!] Fix bug where TinyMCE icon wasn't showing up if SiteOrigin Page Builder and Black Studio TinyMCE Widget were activated together
15
  [+] Add IE 7 & 8 compatibility
10
 
11
  ----
12
 
13
+ (6/20/2015) - 0.4
14
+ [*] Show TinyMCE icon on all post types
15
+
16
+ ----
17
+
18
  (6/19/2015) - 0.3
19
  [!] Fix bug where TinyMCE icon wasn't showing up if SiteOrigin Page Builder and Black Studio TinyMCE Widget were activated together
20
  [+] Add IE 7 & 8 compatibility
lightweight-grid-columns.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Lightweight Grid Columns
4
  Plugin URI: http://generatepress.com
5
  Description: Add lightweight grid columns to your content using easy to use shortcodes.
6
- Version: 0.3
7
  Author: Thomas Usborne
8
  Author URI: http://edge22.com
9
  License: GNU General Public License v2 or later
@@ -36,17 +36,11 @@ if ( ! function_exists( 'lgc_add_shortcode_button' ) ) :
36
  * Set it up so we can register our TinyMCE button
37
  */
38
  add_action('admin_init', 'lgc_add_shortcode_button');
39
- function lgc_add_shortcode_button() {
40
-
41
- global $typenow;
42
-
43
  // check user permissions
44
  if ( !current_user_can( 'edit_posts' ) && !current_user_can( 'edit_pages' ) )
45
  return;
46
-
47
- // verify the post type
48
- if( ! in_array( $typenow, apply_filters( 'lgc_shortcodes_post_type', array( 'post', 'page' ) ) ) )
49
- return;
50
 
51
  // check if WYSIWYG is enabled
52
  if ( get_user_option( 'rich_editing' ) == 'true') {
3
  Plugin Name: Lightweight Grid Columns
4
  Plugin URI: http://generatepress.com
5
  Description: Add lightweight grid columns to your content using easy to use shortcodes.
6
+ Version: 0.4
7
  Author: Thomas Usborne
8
  Author URI: http://edge22.com
9
  License: GNU General Public License v2 or later
36
  * Set it up so we can register our TinyMCE button
37
  */
38
  add_action('admin_init', 'lgc_add_shortcode_button');
39
+ function lgc_add_shortcode_button()
40
+ {
 
 
41
  // check user permissions
42
  if ( !current_user_can( 'edit_posts' ) && !current_user_can( 'edit_pages' ) )
43
  return;
 
 
 
 
44
 
45
  // check if WYSIWYG is enabled
46
  if ( get_user_option( 'rich_editing' ) == 'true') {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: columns, columns shortcode, grid columns
5
  Requires at least: 4.0
6
  Tested up to: 4.2.2
7
- Stable tag: 0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -91,6 +91,9 @@ You can use:
91
 
92
  == Changelog ==
93
 
 
 
 
94
  = 0.3 =
95
  * Fix bug where TinyMCE icon wasn't showing up if SiteOrigin Page Builder and Black Studio TinyMCE Widget were activated together
96
  * Add IE 7 & 8 compatibility
@@ -103,6 +106,9 @@ You can use:
103
 
104
  == Upgrade Notice ==
105
 
 
 
 
106
  = 0.3 =
107
  Add old IE compatibility
108
 
4
  Tags: columns, columns shortcode, grid columns
5
  Requires at least: 4.0
6
  Tested up to: 4.2.2
7
+ Stable tag: 0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
91
 
92
  == Changelog ==
93
 
94
+ = 0.4 =
95
+ * Show TinyMCE icon on all post types
96
+
97
  = 0.3 =
98
  * Fix bug where TinyMCE icon wasn't showing up if SiteOrigin Page Builder and Black Studio TinyMCE Widget were activated together
99
  * Add IE 7 & 8 compatibility
106
 
107
  == Upgrade Notice ==
108
 
109
+ = 0.4 =
110
+ Show TinyMCE icon on all post types
111
+
112
  = 0.3 =
113
  Add old IE compatibility
114