Simple Custom CSS and JS - Version 3.11

Version Description

  • 01/03/2018
  • Use the print_footer_scripts function for the footer scripts (https://wordpress.org/support/topic/footer-code-position-before-external-scripts-is-overridden/)
  • Escape selectively the HTML characters in the editor (https://wordpress.org/support/topic/annoying-bug-in-text-editor/)
Download this release

Release Info

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

Code changes from version 3.10 to 3.11

Files changed (2) hide show
  1. custom-css-js.php +9 -2
  2. readme.txt +7 -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.10
7
  * Author: Diana Burduja
8
  * Author URI: https://www.silkypress.com/
9
  * License: GPL2
@@ -105,6 +105,9 @@ final class CustomCSSandJS {
105
  } else {
106
  $action .= 'footer';
107
  }
 
 
 
108
  add_action( $action, array( $this, 'print_' . $_key ) );
109
  }
110
  }
@@ -118,6 +121,10 @@ final class CustomCSSandJS {
118
  return false;
119
  }
120
 
 
 
 
 
121
  $function = str_replace( 'print_', '', $function );
122
 
123
  if ( ! isset( $this->search_tree[ $function ] ) ) {
@@ -194,7 +201,7 @@ final class CustomCSSandJS {
194
  function set_constants() {
195
  $dir = wp_upload_dir();
196
  $constants = array(
197
- 'CCJ_VERSION' => '3.10',
198
  'CCJ_UPLOAD_DIR' => $dir['basedir'] . '/custom-css-js',
199
  'CCJ_UPLOAD_URL' => $dir['baseurl'] . '/custom-css-js',
200
  '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.11
7
  * Author: Diana Burduja
8
  * Author URI: https://www.silkypress.com/
9
  * License: GPL2
105
  } else {
106
  $action .= 'footer';
107
  }
108
+
109
+ if ( $action == 'wp_footer' ) $action = 'print_footer_scripts';
110
+
111
  add_action( $action, array( $this, 'print_' . $_key ) );
112
  }
113
  }
121
  return false;
122
  }
123
 
124
+ if( is_admin() && strpos( $function, 'print_frontend-' ) !== false ) {
125
+ return false;
126
+ }
127
+
128
  $function = str_replace( 'print_', '', $function );
129
 
130
  if ( ! isset( $this->search_tree[ $function ] ) ) {
201
  function set_constants() {
202
  $dir = wp_upload_dir();
203
  $constants = array(
204
+ 'CCJ_VERSION' => '3.11',
205
  'CCJ_UPLOAD_DIR' => $dir['basedir'] . '/custom-css-js',
206
  'CCJ_UPLOAD_URL' => $dir['baseurl'] . '/custom-css-js',
207
  'CCJ_PLUGIN_FILE' => __FILE__,
readme.txt CHANGED
@@ -6,7 +6,7 @@ Email: diana@burduja.eu
6
  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
7
  Requires at least: 3.0.1
8
  Tested up to: 4.9
9
- Stable tag: 3.10
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
12
 
@@ -115,7 +115,13 @@ $. Add/Edit HTML
115
 
116
  == Changelog ==
117
 
 
 
 
 
 
118
  = 3.10 =
 
119
  * Fix: https://wordpress.org/support/topic/broken-layout-of-code-snippet-type-color-tag-css-html-js-on-main-list-table/
120
  * Feature: add filter by code type
121
  * Feature: make the 'Modified' column sortable
6
  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
7
  Requires at least: 3.0.1
8
  Tested up to: 4.9
9
+ Stable tag: 3.11
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
12
 
115
 
116
  == Changelog ==
117
 
118
+ = 3.11 =
119
+ * 01/03/2018
120
+ * Use the `print_footer_scripts` function for the footer scripts (https://wordpress.org/support/topic/footer-code-position-before-external-scripts-is-overridden/)
121
+ * Escape selectively the HTML characters in the editor (https://wordpress.org/support/topic/annoying-bug-in-text-editor/)
122
+
123
  = 3.10 =
124
+ * 12/15/2017
125
  * Fix: https://wordpress.org/support/topic/broken-layout-of-code-snippet-type-color-tag-css-html-js-on-main-list-table/
126
  * Feature: add filter by code type
127
  * Feature: make the 'Modified' column sortable