WP Add Custom CSS - Version 0.9.2

Version Description

  • Fixed minor bug
  • Minor layout changes
Download this release

Release Info

Developer danieledesantis
Plugin Icon 128x128 WP Add Custom CSS
Version 0.9.2
Comparing to
See all releases

Code changes from version 0.9.1 to 0.9.2

Files changed (2) hide show
  1. readme.txt +6 -2
  2. wordpress-add-custom-css.php +4 -6
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: danieledesantis
3
  Tags: css, custom css, stylesheet, custom stylesheet, single post css, site css, single page css
4
  Requires at least: 4.0
5
- Tested up to: 4.0
6
- Stable tag: 0.9.1
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -52,6 +52,10 @@ Click on the "Screen option" link from your post/page editing area and be sure t
52
 
53
  == Changelog ==
54
 
 
 
 
 
55
  = 0.9.1 =
56
  * Fixed double quotes rendering issue
57
 
2
  Contributors: danieledesantis
3
  Tags: css, custom css, stylesheet, custom stylesheet, single post css, site css, single page css
4
  Requires at least: 4.0
5
+ Tested up to: 4.1.1
6
+ Stable tag: 0.9.2
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
52
 
53
  == Changelog ==
54
 
55
+ = 0.9.2 =
56
+ * Fixed minor bug
57
+ * Minor layout changes
58
+
59
  = 0.9.1 =
60
  * Fixed double quotes rendering issue
61
 
wordpress-add-custom-css.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Add Custom CSS
4
  Plugin URI: http://www.danieledesantis.net
5
  Description: Add custom css to the whole website and to specific posts and pages.
6
- Version: 0.9.1
7
  Author: Daniele De Santis
8
  Author URI: http://www.danieledesantis.net
9
  Text Domain: wp-add-custom-css
@@ -86,7 +86,7 @@ if(!class_exists('Wpacc'))
86
  wp_nonce_field( 'single_add_custom_css_box', 'wp_add_custom_css_box_nonce' );
87
  $single_custom_css = get_post_meta( $post->ID, '_single_add_custom_css', true );
88
  echo '<p>'. __( 'Add custom CSS rules for this ' . $post->post_type, 'wp-add-custom-css' ) . '</p> ';
89
- echo '<textarea id="single_custom_css" name="single_custom_css" style="min-height:200px;">' . esc_attr( $single_custom_css ) . '</textarea>';
90
  }
91
 
92
  public function add_menu() {
@@ -117,10 +117,8 @@ if(!class_exists('Wpacc'))
117
  }
118
 
119
  public function main_css_input() {
120
- printf(
121
- '<textarea name="wpacc_settings[main_custom_style]" style="min-height:300px;">%s</textarea>',
122
- isset( $this->options['main_custom_style'] ) ? esc_attr( $this->options['main_custom_style'] ) : ''
123
- );
124
  }
125
 
126
  public function init_settings() {
3
  Plugin Name: WP Add Custom CSS
4
  Plugin URI: http://www.danieledesantis.net
5
  Description: Add custom css to the whole website and to specific posts and pages.
6
+ Version: 0.9.2
7
  Author: Daniele De Santis
8
  Author URI: http://www.danieledesantis.net
9
  Text Domain: wp-add-custom-css
86
  wp_nonce_field( 'single_add_custom_css_box', 'wp_add_custom_css_box_nonce' );
87
  $single_custom_css = get_post_meta( $post->ID, '_single_add_custom_css', true );
88
  echo '<p>'. __( 'Add custom CSS rules for this ' . $post->post_type, 'wp-add-custom-css' ) . '</p> ';
89
+ echo '<textarea id="single_custom_css" name="single_custom_css" style="width:100%; min-height:200px;">' . esc_attr( $single_custom_css ) . '</textarea>';
90
  }
91
 
92
  public function add_menu() {
117
  }
118
 
119
  public function main_css_input() {
120
+ $custom_rules = isset( $this->options['main_custom_style'] ) ? esc_attr( $this->options['main_custom_style'] ) : '';
121
+ echo '<textarea name="wpacc_settings[main_custom_style]" style="width:100%; min-height:300px;">' . $custom_rules . '</textarea>';
 
 
122
  }
123
 
124
  public function init_settings() {