Version Description
- Fixed issues with ssl on some server configurations
Download this release
Release Info
Developer | danieledesantis |
Plugin | WP Add Custom CSS |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- readme.txt +8 -2
- wordpress-add-custom-css.php +8 -2
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: danieledesantis
|
3 |
Tags: css, custom css, style, styles, stylesheet, custom stylesheet, single post css, site css, single page css, custom post type css, product css
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -63,6 +63,9 @@ Click on the "Screen option" link from your post/page editing area and be sure t
|
|
63 |
|
64 |
== Changelog ==
|
65 |
|
|
|
|
|
|
|
66 |
= 1.0.0 =
|
67 |
* Added support for custom post types
|
68 |
|
@@ -93,6 +96,9 @@ Click on the "Screen option" link from your post/page editing area and be sure t
|
|
93 |
|
94 |
== Upgrade Notice ==
|
95 |
|
|
|
|
|
|
|
96 |
= 1.0.0 =
|
97 |
* Added support for custom post types
|
98 |
|
2 |
Contributors: danieledesantis
|
3 |
Tags: css, custom css, style, styles, stylesheet, custom stylesheet, single post css, site css, single page css, custom post type css, product css
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 4.8
|
6 |
+
Stable tag: 1.0.1
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
63 |
|
64 |
== Changelog ==
|
65 |
|
66 |
+
= 1.0.1 =
|
67 |
+
* Fixed issues with ssl on some server configurations
|
68 |
+
|
69 |
= 1.0.0 =
|
70 |
* Added support for custom post types
|
71 |
|
96 |
|
97 |
== Upgrade Notice ==
|
98 |
|
99 |
+
= 1.0.1 =
|
100 |
+
* Fixed issues with ssl on some server configurations
|
101 |
+
|
102 |
= 1.0.0 =
|
103 |
* Added support for custom post types
|
104 |
|
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, pages and custom post types.
|
6 |
-
Version: 1.0.
|
7 |
Author: Daniele De Santis
|
8 |
Author URI: http://www.danieledesantis.net
|
9 |
Text Domain: wp-add-custom-css
|
@@ -12,7 +12,7 @@ License: GPL2
|
|
12 |
*/
|
13 |
|
14 |
/*
|
15 |
-
Copyright 2014-
|
16 |
|
17 |
This program is free software; you can redistribute it and/or modify
|
18 |
it under the terms of the GNU General Public License, version 2, as
|
@@ -204,8 +204,14 @@ if(!class_exists('Wpacc'))
|
|
204 |
if ( isset($this->options['main_custom_style']) && $this->options['main_custom_style'] != '') {
|
205 |
if ( function_exists('icl_object_id') ) {
|
206 |
$css_base_url = site_url();
|
|
|
|
|
|
|
207 |
} else {
|
208 |
$css_base_url = get_bloginfo('url');
|
|
|
|
|
|
|
209 |
}
|
210 |
wp_register_style( 'wp-add-custom-css', $css_base_url . '?display_custom_css=css' );
|
211 |
wp_enqueue_style( 'wp-add-custom-css' );
|
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, pages and custom post types.
|
6 |
+
Version: 1.0.1
|
7 |
Author: Daniele De Santis
|
8 |
Author URI: http://www.danieledesantis.net
|
9 |
Text Domain: wp-add-custom-css
|
12 |
*/
|
13 |
|
14 |
/*
|
15 |
+
Copyright 2014-2017 Daniele De Santis (email : hello@danieledesantis.net)
|
16 |
|
17 |
This program is free software; you can redistribute it and/or modify
|
18 |
it under the terms of the GNU General Public License, version 2, as
|
204 |
if ( isset($this->options['main_custom_style']) && $this->options['main_custom_style'] != '') {
|
205 |
if ( function_exists('icl_object_id') ) {
|
206 |
$css_base_url = site_url();
|
207 |
+
if ( is_ssl() ) {
|
208 |
+
$css_base_url = site_url('/', 'https');
|
209 |
+
}
|
210 |
} else {
|
211 |
$css_base_url = get_bloginfo('url');
|
212 |
+
if ( is_ssl() ) {
|
213 |
+
$css_base_url = str_replace('http://', 'https://', $css_base_url);
|
214 |
+
}
|
215 |
}
|
216 |
wp_register_style( 'wp-add-custom-css', $css_base_url . '?display_custom_css=css' );
|
217 |
wp_enqueue_style( 'wp-add-custom-css' );
|