Custom CSS and Javascript - Version 2.0.8

Version Description

  • Fixed issue with backslash in CSS
Download this release

Release Info

Developer hearken
Plugin Icon 128x128 Custom CSS and Javascript
Version 2.0.8
Comparing to
See all releases

Code changes from version 2.0.7 to 2.0.8

Files changed (2) hide show
  1. custom-css-and-javascript.php +1 -1
  2. readme.txt +7 -4
custom-css-and-javascript.php CHANGED
@@ -55,7 +55,7 @@ function hm_custom_css_js_save() {
55
  if ($_POST['mode'] != 'css' && $_POST['mode'] != 'javascript')
56
  wp_send_json_error();
57
 
58
- $_POST['code'] = wp_unslash($_POST['code']);
59
 
60
  $rev_id = wp_insert_post(array(
61
  'post_content' => $_POST['code'],
55
  if ($_POST['mode'] != 'css' && $_POST['mode'] != 'javascript')
56
  wp_send_json_error();
57
 
58
+ $_POST['code'] = (get_magic_quotes_gpc() ? stripslashes($_POST['code']) : $_POST['code']);
59
 
60
  $rev_id = wp_insert_post(array(
61
  'post_content' => $_POST['code'],
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: hearken
3
  Donate link: https://potentplugins.com/donate/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-plugin-readme-donate-link
4
  Tags: css, custom css, styles, custom styles, stylesheet, custom stylesheet, javascript, custom javascript, js, custom js
5
  Requires at least: 3.5
6
- Tested up to: 4.6.1
7
- Stable tag: 2.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -22,7 +22,7 @@ Features:
22
  * Automatically minify your custom CSS and Jasascript code to reduce file size.
23
  * For the public, custom CSS and Javascript code is served from the filesystem instead of the database for optimal performance.
24
 
25
- Coming soon! [Custom CSS and Javascript Developer Edition](https://potentplugins.com/downloads/custom-css-javascript-developer-edition/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-repo-upgrade-link):
26
 
27
  * Divide your CSS and Javascript into multiple virtual files to keep your code organized (the code is still served as one CSS and one JS file on the front-end for efficiency).
28
  * Supports Sassy CSS (SCSS)!
@@ -30,7 +30,7 @@ Coming soon! [Custom CSS and Javascript Developer Edition](https://potentplugins
30
  * Upload and download CSS and Javascript files, individually or in ZIP files.
31
  * The developer logo and review/donation links are removed from the editor page in the WordPress admin.
32
 
33
- [Click here](https://potentplugins.com/downloads/custom-css-javascript-developer-edition/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-repo-upgrade-link) to sign up for a launch notification and receive 25% off your first year's subscription!
34
 
35
  If you like this plugin, please consider [making a donation](https://potentplugins.com/donate/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-plugin-repo-donate-link).
36
 
@@ -52,6 +52,9 @@ Alternatively, you can manually upload the plugin to your wp-content/plugins dir
52
 
53
  == Changelog ==
54
 
 
 
 
55
  = 2.0.5 =
56
  * Improved HTTPS support
57
 
3
  Donate link: https://potentplugins.com/donate/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-plugin-readme-donate-link
4
  Tags: css, custom css, styles, custom styles, stylesheet, custom stylesheet, javascript, custom javascript, js, custom js
5
  Requires at least: 3.5
6
+ Tested up to: 4.7
7
+ Stable tag: 2.0.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
22
  * Automatically minify your custom CSS and Jasascript code to reduce file size.
23
  * For the public, custom CSS and Javascript code is served from the filesystem instead of the database for optimal performance.
24
 
25
+ Now available! [Custom CSS and Javascript Developer Edition](https://potentplugins.com/downloads/custom-css-javascript-developer-edition/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-repo-upgrade-link):
26
 
27
  * Divide your CSS and Javascript into multiple virtual files to keep your code organized (the code is still served as one CSS and one JS file on the front-end for efficiency).
28
  * Supports Sassy CSS (SCSS)!
30
  * Upload and download CSS and Javascript files, individually or in ZIP files.
31
  * The developer logo and review/donation links are removed from the editor page in the WordPress admin.
32
 
33
+ [Click here](https://potentplugins.com/downloads/custom-css-javascript-developer-edition/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-repo-upgrade-link) to purchase!
34
 
35
  If you like this plugin, please consider [making a donation](https://potentplugins.com/donate/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-plugin-repo-donate-link).
36
 
52
 
53
  == Changelog ==
54
 
55
+ = 2.0.8 =
56
+ * Fixed issue with backslash in CSS
57
+
58
  = 2.0.5 =
59
  * Improved HTTPS support
60