WP Add Custom CSS - Version 0.9.7

Version Description

  • Fixed minor bug
Download this release

Release Info

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

Code changes from version 0.9.6 to 0.9.7

Files changed (2) hide show
  1. readme.txt +8 -2
  2. wordpress-add-custom-css.php +7 -2
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.3.1
6
- Stable tag: 0.9.6
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -58,6 +58,9 @@ Click on the "Screen option" link from your post/page editing area and be sure t
58
 
59
  == Changelog ==
60
 
 
 
 
61
  = 0.9.6 =
62
  * Fixed WPML bug
63
 
@@ -82,6 +85,9 @@ Click on the "Screen option" link from your post/page editing area and be sure t
82
 
83
  == Upgrade Notice ==
84
 
 
 
 
85
  = 0.9.6 =
86
  * Fixed WPML bug
87
 
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.4
6
+ Stable tag: 0.9.7
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
58
 
59
  == Changelog ==
60
 
61
+ = 0.9.7 =
62
+ * Fixed minor bug
63
+
64
  = 0.9.6 =
65
  * Fixed WPML bug
66
 
85
 
86
  == Upgrade Notice ==
87
 
88
+ = 0.9.7 =
89
+ * Fixed minor bug
90
+
91
  = 0.9.6 =
92
  * Fixed WPML bug
93
 
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.6
7
  Author: Daniele De Santis
8
  Author URI: http://www.danieledesantis.net
9
  Text Domain: wp-add-custom-css
@@ -169,7 +169,12 @@ if(!class_exists('Wpacc'))
169
  public function add_custom_css() {
170
  $this->options = get_option( 'wpacc_settings' );
171
  if ( isset($this->options['main_custom_style']) && $this->options['main_custom_style'] != '') {
172
- wp_register_style( 'wp-add-custom-css', site_url() . '?display_custom_css=css' );
 
 
 
 
 
173
  wp_enqueue_style( 'wp-add-custom-css' );
174
  }
175
  }
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.7
7
  Author: Daniele De Santis
8
  Author URI: http://www.danieledesantis.net
9
  Text Domain: wp-add-custom-css
169
  public function add_custom_css() {
170
  $this->options = get_option( 'wpacc_settings' );
171
  if ( isset($this->options['main_custom_style']) && $this->options['main_custom_style'] != '') {
172
+ if ( function_exists('icl_object_id') ) {
173
+ $css_base_url = site_url();
174
+ } else {
175
+ $css_base_url = get_bloginfo('url');
176
+ }
177
+ wp_register_style( 'wp-add-custom-css', $css_base_url . '?display_custom_css=css' );
178
  wp_enqueue_style( 'wp-add-custom-css' );
179
  }
180
  }