Simple Custom CSS and JS - Version 3.32.1

Version Description

= * 07/13/2020 * Fix: use file_get_contents instead of include_once to load the custom codes

Download this release

Release Info

Developer diana_burduja
Plugin Icon 128x128 Simple Custom CSS and JS
Version 3.32.1
Comparing to
See all releases

Code changes from version 3.32 to 3.32.1

Files changed (2) hide show
  1. custom-css-js.php +5 -7
  2. readme.txt +5 -1
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
@@ -12,7 +12,7 @@
12
  * Domain Path: /languages/
13
  *
14
  * WC requires at least: 2.3.0
15
- * WC tested up to: 4.2
16
  */
17
 
18
  if ( ! defined( 'ABSPATH' ) ) {
@@ -172,9 +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
- ob_start();
176
- @include_once CCJ_UPLOAD_DIR . '/' . $_filename;
177
- $custom_code = ob_get_clean();
178
  if ( $this->settings['remove_comments'] ) {
179
  $custom_code = str_replace( array(
180
  '<!-- start Simple Custom CSS and JS -->' . PHP_EOL,
@@ -186,7 +184,7 @@ if ( ! class_exists( 'CustomCSSandJS' ) ) :
186
  }
187
  echo $custom_code;
188
  } else {
189
- @include_once CCJ_UPLOAD_DIR . '/' . $_filename;
190
  }
191
  }
192
 
@@ -219,7 +217,7 @@ if ( ! class_exists( 'CustomCSSandJS' ) ) :
219
  function set_constants() {
220
  $dir = wp_upload_dir();
221
  $constants = array(
222
- 'CCJ_VERSION' => '3.32',
223
  'CCJ_UPLOAD_DIR' => $dir['basedir'] . '/custom-css-js',
224
  'CCJ_UPLOAD_URL' => $dir['baseurl'] . '/custom-css-js',
225
  '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.1
7
  * Author: SilkyPress.com
8
  * Author URI: https://www.silkypress.com
9
  * License: GPL2
12
  * Domain Path: /languages/
13
  *
14
  * WC requires at least: 2.3.0
15
+ * WC tested up to: 4.3
16
  */
17
 
18
  if ( ! defined( 'ABSPATH' ) ) {
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.1',
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
@@ -105,6 +105,10 @@ $. Add/Edit HTML
105
 
106
  == Changelog ==
107
 
 
 
 
 
108
  = 3.32 =
109
  * 07/08/2020
110
  * Fix: compatibility issue with the Product Slider for WooCommerce by ShapedPlugin
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.1
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
  Requires PHP: 5.2.4
105
 
106
  == Changelog ==
107
 
108
+ = 3.32.1 =
109
+ * 07/13/2020
110
+ * Fix: use file_get_contents instead of include_once to load the custom codes
111
+
112
  = 3.32 =
113
  * 07/08/2020
114
  * Fix: compatibility issue with the Product Slider for WooCommerce by ShapedPlugin