Simple Custom CSS and JS - Version 3.19

Version Description

  • 10/16/2018
  • Fix: keep the editor LTR even on RTL websites
  • Fix: flush rewrite rules after modifying the "Add Web Designer role" option
Download this release

Release Info

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

Code changes from version 3.18 to 3.19

assets/ccj_admin.css CHANGED
@@ -386,3 +386,6 @@ height: 3px;
386
  padding: 10px;
387
  margin-left: -110px;
388
  }
 
 
 
386
  padding: 10px;
387
  margin-left: -110px;
388
  }
389
+ pre.CodeMirror-line {
390
+ direction: ltr;
391
+ }
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.18
7
  * Author: SilkyPress.com
8
  * Author URI: https://www.silkypress.com
9
  * License: GPL2
@@ -202,7 +202,7 @@ final class CustomCSSandJS {
202
  function set_constants() {
203
  $dir = wp_upload_dir();
204
  $constants = array(
205
- 'CCJ_VERSION' => '3.18',
206
  'CCJ_UPLOAD_DIR' => $dir['basedir'] . '/custom-css-js',
207
  'CCJ_UPLOAD_URL' => $dir['baseurl'] . '/custom-css-js',
208
  '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.19
7
  * Author: SilkyPress.com
8
  * Author URI: https://www.silkypress.com
9
  * License: GPL2
202
  function set_constants() {
203
  $dir = wp_upload_dir();
204
  $constants = array(
205
+ 'CCJ_VERSION' => '3.19',
206
  'CCJ_UPLOAD_DIR' => $dir['basedir'] . '/custom-css-js',
207
  'CCJ_UPLOAD_URL' => $dir['baseurl'] . '/custom-css-js',
208
  'CCJ_PLUGIN_FILE' => __FILE__,
includes/admin-config.php CHANGED
@@ -98,7 +98,7 @@ class CustomCSSandJS_AdminConfig {
98
  if ( !isset($settings['add_role'] ) ) $settings['add_role'] = false;
99
 
100
  // If the "add role" option changed
101
- if ( $data['add_role'] !== $settings['add_role'] ) {
102
  // Add the 'css_js_designer' role
103
  if ( $data['add_role'] ) {
104
  CustomCSSandJS_Install::create_roles();
@@ -108,6 +108,7 @@ class CustomCSSandJS_AdminConfig {
108
  if ( !$data['add_role'] ) {
109
  remove_role('css_js_designer');
110
  }
 
111
  }
112
 
113
  update_option( 'ccj_settings', $data );
98
  if ( !isset($settings['add_role'] ) ) $settings['add_role'] = false;
99
 
100
  // If the "add role" option changed
101
+ if ( $data['add_role'] !== $settings['add_role'] && current_user_can('update_plugins')) {
102
  // Add the 'css_js_designer' role
103
  if ( $data['add_role'] ) {
104
  CustomCSSandJS_Install::create_roles();
108
  if ( !$data['add_role'] ) {
109
  remove_role('css_js_designer');
110
  }
111
+ flush_rewrite_rules();
112
  }
113
 
114
  update_option( 'ccj_settings', $data );
includes/admin-screens.php CHANGED
@@ -510,14 +510,6 @@ class CustomCSSandJS_Admin {
510
  } else {
511
  $(".ccj_only_premium-first").hide();
512
  }
513
-
514
- /*
515
- $("#normal-sortables").mouseenter(function() {
516
- $(".ccj_only_premium-first div").css('display', 'block');
517
- }).mouseleave(function() {
518
- $(".ccj_only_premium-first div").css('display', 'none');
519
- });
520
- */
521
  });
522
  /* ]]> */
523
  </script>
510
  } else {
511
  $(".ccj_only_premium-first").hide();
512
  }
 
 
 
 
 
 
 
 
513
  });
514
  /* ]]> */
515
  </script>
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: 4.9
8
- Stable tag: 3.18
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
  Requires PHP: 5.2.4
@@ -115,6 +115,10 @@ $. Add/Edit HTML
115
 
116
  == Changelog ==
117
 
 
 
 
 
118
 
119
  = 3.18 =
120
  * 07/13/2018
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: 4.9
8
+ Stable tag: 3.19
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
  Requires PHP: 5.2.4
115
 
116
  == Changelog ==
117
 
118
+ = 3.19 =
119
+ * 10/16/2018
120
+ * Fix: keep the editor LTR even on RTL websites
121
+ * Fix: flush rewrite rules after modifying the "Add Web Designer role" option
122
 
123
  = 3.18 =
124
  * 07/13/2018