Version Description
= * 07/14/2020 * Fix: use file_get_contents instead of include_once to load the custom codes
Download this release
Release Info
Developer | diana_burduja |
Plugin | Simple Custom CSS and JS |
Version | 3.32.2 |
Comparing to | |
See all releases |
Code changes from version 3.32.1 to 3.32.2
- custom-css-js.php +4 -4
- readme.txt +5 -5
custom-css-js.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Simple Custom CSS and JS
|
4 |
* Plugin URI: https://wordpress.org/plugins/custom-css-js/
|
5 |
* Description: Easily add Custom CSS or JS to your website with an awesome editor.
|
6 |
-
* Version: 3.32.
|
7 |
* Author: SilkyPress.com
|
8 |
* Author URI: https://www.silkypress.com
|
9 |
* License: GPL2
|
@@ -172,7 +172,7 @@ if ( ! class_exists( 'CustomCSSandJS' ) ) :
|
|
172 |
|
173 |
if ( $where === 'internal' && ( strstr( $_filename, 'css' ) || strstr( $_filename, 'js' ) ) ) {
|
174 |
if ( $this->settings['remove_comments'] || empty( $type_attr ) ) {
|
175 |
-
$custom_code = file_get_contents( CCJ_UPLOAD_DIR . '/' . $_filename );
|
176 |
if ( $this->settings['remove_comments'] ) {
|
177 |
$custom_code = str_replace( array(
|
178 |
'<!-- start Simple Custom CSS and JS -->' . PHP_EOL,
|
@@ -184,7 +184,7 @@ if ( ! class_exists( 'CustomCSSandJS' ) ) :
|
|
184 |
}
|
185 |
echo $custom_code;
|
186 |
} else {
|
187 |
-
echo file_get_contents( CCJ_UPLOAD_DIR . '/' . $_filename );
|
188 |
}
|
189 |
}
|
190 |
|
@@ -217,7 +217,7 @@ if ( ! class_exists( 'CustomCSSandJS' ) ) :
|
|
217 |
function set_constants() {
|
218 |
$dir = wp_upload_dir();
|
219 |
$constants = array(
|
220 |
-
'CCJ_VERSION' => '3.32.
|
221 |
'CCJ_UPLOAD_DIR' => $dir['basedir'] . '/custom-css-js',
|
222 |
'CCJ_UPLOAD_URL' => $dir['baseurl'] . '/custom-css-js',
|
223 |
'CCJ_PLUGIN_FILE' => __FILE__,
|
3 |
* Plugin Name: Simple Custom CSS and JS
|
4 |
* Plugin URI: https://wordpress.org/plugins/custom-css-js/
|
5 |
* Description: Easily add Custom CSS or JS to your website with an awesome editor.
|
6 |
+
* Version: 3.32.2
|
7 |
* Author: SilkyPress.com
|
8 |
* Author URI: https://www.silkypress.com
|
9 |
* License: GPL2
|
172 |
|
173 |
if ( $where === 'internal' && ( strstr( $_filename, 'css' ) || strstr( $_filename, 'js' ) ) ) {
|
174 |
if ( $this->settings['remove_comments'] || empty( $type_attr ) ) {
|
175 |
+
$custom_code = @file_get_contents( CCJ_UPLOAD_DIR . '/' . $_filename );
|
176 |
if ( $this->settings['remove_comments'] ) {
|
177 |
$custom_code = str_replace( array(
|
178 |
'<!-- start Simple Custom CSS and JS -->' . PHP_EOL,
|
184 |
}
|
185 |
echo $custom_code;
|
186 |
} else {
|
187 |
+
echo @file_get_contents( CCJ_UPLOAD_DIR . '/' . $_filename );
|
188 |
}
|
189 |
}
|
190 |
|
217 |
function set_constants() {
|
218 |
$dir = wp_upload_dir();
|
219 |
$constants = array(
|
220 |
+
'CCJ_VERSION' => '3.32.2',
|
221 |
'CCJ_UPLOAD_DIR' => $dir['basedir'] . '/custom-css-js',
|
222 |
'CCJ_UPLOAD_URL' => $dir['baseurl'] . '/custom-css-js',
|
223 |
'CCJ_PLUGIN_FILE' => __FILE__,
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Email: diana@burduja.eu
|
|
5 |
Tags: CSS, JS, javascript, custom CSS, custom JS, custom style, site css, add style, customize theme, custom code, external css, css3, style, styles, stylesheet, theme, editor, design, admin
|
6 |
Requires at least: 3.0.1
|
7 |
Tested up to: 5.5
|
8 |
-
Stable tag: 3.32.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
Requires PHP: 5.2.4
|
@@ -14,7 +14,7 @@ Easily add Custom CSS or JS to your website with an awesome editor.
|
|
14 |
|
15 |
== Description ==
|
16 |
|
17 |
-
Customize your WordPress site's appearance by easily adding custom CSS and JS code without even having to modify your theme or plugin files. This is perfect for adding custom CSS tweaks to your site.
|
18 |
|
19 |
= Features =
|
20 |
* **Text editor** with syntax highlighting
|
@@ -90,7 +90,7 @@ By default only the Administrator will be able to publish/edit/delete Custom Cod
|
|
90 |
* If the [qTranslate X](https://wordpress.org/plugins/qtranslate-x/) plugin is adding some `[:]` or `[:en]` characters to your code, then you need to remove the `custom-css-js` post type from the qTranslate settings. Check out [this screenshot](https://www.silkypress.com/wp-content/uploads/2016/08/ccj_qtranslate_compatibility.png) on how to do that.
|
91 |
|
92 |
= My website has HTTPS urls, but the codes are linked as HTTP =
|
93 |
-
The URL for the linked Codes is built just like the URL for other media (from Media Library) by using the WordPress Address option found on the WP Admin -> Settings -> General page, as shown in [this screenshot](https://www.silkypress.com/wp-content/uploads/2016/12/ccj-siteurl.png). If the WordPress Address has HTTPS in the url, then the Custom Codes and all the other media will have HTTPS in the url.
|
94 |
|
95 |
|
96 |
== Screenshots ==
|
@@ -105,8 +105,8 @@ $. Add/Edit HTML
|
|
105 |
|
106 |
== Changelog ==
|
107 |
|
108 |
-
= 3.32.
|
109 |
-
* 07/
|
110 |
* Fix: use file_get_contents instead of include_once to load the custom codes
|
111 |
|
112 |
= 3.32 =
|
5 |
Tags: CSS, JS, javascript, custom CSS, custom JS, custom style, site css, add style, customize theme, custom code, external css, css3, style, styles, stylesheet, theme, editor, design, admin
|
6 |
Requires at least: 3.0.1
|
7 |
Tested up to: 5.5
|
8 |
+
Stable tag: 3.32.2
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
Requires PHP: 5.2.4
|
14 |
|
15 |
== Description ==
|
16 |
|
17 |
+
Customize your WordPress site's appearance by easily adding custom CSS and JS code without even having to modify your theme or plugin files. This is perfect for adding custom CSS tweaks to your site.
|
18 |
|
19 |
= Features =
|
20 |
* **Text editor** with syntax highlighting
|
90 |
* If the [qTranslate X](https://wordpress.org/plugins/qtranslate-x/) plugin is adding some `[:]` or `[:en]` characters to your code, then you need to remove the `custom-css-js` post type from the qTranslate settings. Check out [this screenshot](https://www.silkypress.com/wp-content/uploads/2016/08/ccj_qtranslate_compatibility.png) on how to do that.
|
91 |
|
92 |
= My website has HTTPS urls, but the codes are linked as HTTP =
|
93 |
+
The URL for the linked Codes is built just like the URL for other media (from Media Library) by using the WordPress Address option found on the WP Admin -> Settings -> General page, as shown in [this screenshot](https://www.silkypress.com/wp-content/uploads/2016/12/ccj-siteurl.png). If the WordPress Address has HTTPS in the url, then the Custom Codes and all the other media will have HTTPS in the url.
|
94 |
|
95 |
|
96 |
== Screenshots ==
|
105 |
|
106 |
== Changelog ==
|
107 |
|
108 |
+
= 3.32.2 =
|
109 |
+
* 07/14/2020
|
110 |
* Fix: use file_get_contents instead of include_once to load the custom codes
|
111 |
|
112 |
= 3.32 =
|