Simple CSS - Version 1.1

Version Description

  • Fix meta box saving issue
Download this release

Release Info

Developer edge22
Plugin Icon 128x128 Simple CSS
Version 1.1
Comparing to
See all releases

Code changes from version 1.0 to 1.1

Files changed (2) hide show
  1. readme.txt +7 -1
  2. simple-css.php +2 -2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://generatepress.com/ongoing-development
4
  Tags: CSS, custom CSS, Simple CSS, Simple Custom CSS, CSS Customizer, CSS metabox, CSS specific page
5
  Requires at least: 4.0
6
  Tested up to: 4.8.1
7
- Stable tag: 1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -63,6 +63,9 @@ In most cases, #1 will work fine and is way easier.
63
 
64
  == Changelog ==
65
 
 
 
 
66
  = 1.0 =
67
  * Show metabox only on public post types
68
  * Add live preview to Customizer
@@ -90,6 +93,9 @@ In most cases, #1 will work fine and is way easier.
90
 
91
  == Upgrade Notice ==
92
 
 
 
 
93
  = 1.0 =
94
  * Show metabox only on public post types
95
  * Add live preview to Customizer
4
  Tags: CSS, custom CSS, Simple CSS, Simple Custom CSS, CSS Customizer, CSS metabox, CSS specific page
5
  Requires at least: 4.0
6
  Tested up to: 4.8.1
7
+ Stable tag: 1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
63
 
64
  == Changelog ==
65
 
66
+ = 1.1 =
67
+ * Fix meta box saving issue
68
+
69
  = 1.0 =
70
  * Show metabox only on public post types
71
  * Add live preview to Customizer
93
 
94
  == Upgrade Notice ==
95
 
96
+ = 1.1 =
97
+ * Fix meta box saving issue
98
+
99
  = 1.0 =
100
  * Show metabox only on public post types
101
  * Add live preview to Customizer
simple-css.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Simple CSS
4
  Plugin URI: https://generatepress.com
5
  Description: Simply add CSS to your WordPress site using an awesome CSS editor or the live Customizer.
6
- Version: 1.0
7
  Author: Tom Usborne
8
  Author URI: https://tomusborne.com
9
  License: GNU General Public License v2 or later
@@ -296,7 +296,7 @@ function simple_css_save_metabox( $post_id ) {
296
  }
297
 
298
  if ( isset( $_POST[ '_simple_css' ] ) && $_POST[ '_simple_css' ] !== '' ) {
299
- update_post_meta( $post_id, '_simple_css', strip_tags( $css ) );
300
  } else {
301
  delete_post_meta( $post_id, '_simple_css' );
302
  }
3
  Plugin Name: Simple CSS
4
  Plugin URI: https://generatepress.com
5
  Description: Simply add CSS to your WordPress site using an awesome CSS editor or the live Customizer.
6
+ Version: 1.1
7
  Author: Tom Usborne
8
  Author URI: https://tomusborne.com
9
  License: GNU General Public License v2 or later
296
  }
297
 
298
  if ( isset( $_POST[ '_simple_css' ] ) && $_POST[ '_simple_css' ] !== '' ) {
299
+ update_post_meta( $post_id, '_simple_css', strip_tags( $_POST[ '_simple_css' ] ) );
300
  } else {
301
  delete_post_meta( $post_id, '_simple_css' );
302
  }