Simple Custom CSS and JS - Version 3.28

Version Description

  • 11/05/2019
  • Tweak: update the Bootstrap and jQuery library links
  • Declare compatibility with WordPress 5.3
Download this release

Release Info

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

Code changes from version 3.27 to 3.28

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.27
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: 3.7
16
  */
17
 
18
  if ( ! defined( 'ABSPATH' ) ) {
@@ -218,7 +218,7 @@ final class CustomCSSandJS {
218
  function set_constants() {
219
  $dir = wp_upload_dir();
220
  $constants = array(
221
- 'CCJ_VERSION' => '3.27',
222
  'CCJ_UPLOAD_DIR' => $dir['basedir'] . '/custom-css-js',
223
  'CCJ_UPLOAD_URL' => $dir['baseurl'] . '/custom-css-js',
224
  '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.28
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: 3.8
16
  */
17
 
18
  if ( ! defined( 'ABSPATH' ) ) {
218
  function set_constants() {
219
  $dir = wp_upload_dir();
220
  $constants = array(
221
+ 'CCJ_VERSION' => '3.28',
222
  'CCJ_UPLOAD_DIR' => $dir['basedir'] . '/custom-css-js',
223
  'CCJ_UPLOAD_URL' => $dir['baseurl'] . '/custom-css-js',
224
  'CCJ_PLUGIN_FILE' => __FILE__,
includes/admin-screens.php CHANGED
@@ -61,7 +61,6 @@ class CustomCSSandJS_Admin {
61
  'save_post' => 'options_save_meta_box_data',
62
  'trashed_post' => 'trash_post',
63
  'untrashed_post' => 'trash_post',
64
- // 'wp_loaded' => 'compatibility_shortcoder',
65
  'wp_ajax_ccj_active_code' => 'wp_ajax_ccj_active_code',
66
  'wp_ajax_ccj_permalink' => 'wp_ajax_ccj_permalink',
67
  'post_submitbox_start' => 'post_submitbox_start',
@@ -622,10 +621,10 @@ End of comment */ ', 'custom-css-js') . PHP_EOL . PHP_EOL;
622
  $post->post_content = __('<!-- Add HTML code to the header or the footer.
623
 
624
  For example, you can use the following code for loading the jQuery library from Google CDN:
625
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
626
 
627
  or the following one for loading the Bootstrap library from MaxCDN:
628
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
629
 
630
  -- End of the comment --> ', 'custom-css-js') . PHP_EOL . PHP_EOL;
631
  }
@@ -1154,20 +1153,6 @@ End of comment */ ', 'custom-css-js') . PHP_EOL . PHP_EOL;
1154
  }
1155
 
1156
 
1157
- /**
1158
- * Compatibility with `shortcoder` plugin
1159
- *
1160
- function compatibility_shortcoder() {
1161
- ob_start( array( $this, 'compatibility_shortcoder_html' ) );
1162
- }
1163
- function compatibility_shortcoder_html( $html ) {
1164
- if ( strpos( $html, 'QTags.addButton' ) === false ) return $html;
1165
- if ( strpos( $html, 'codemirror/codemirror-compressed.js' ) === false ) return $html;
1166
-
1167
- return str_replace( 'QTags.addButton', '// QTags.addButton', $html );
1168
- }
1169
- */
1170
-
1171
  /**
1172
  * Render the checkboxes, radios, selects and inputs
1173
  */
61
  'save_post' => 'options_save_meta_box_data',
62
  'trashed_post' => 'trash_post',
63
  'untrashed_post' => 'trash_post',
 
64
  'wp_ajax_ccj_active_code' => 'wp_ajax_ccj_active_code',
65
  'wp_ajax_ccj_permalink' => 'wp_ajax_ccj_permalink',
66
  'post_submitbox_start' => 'post_submitbox_start',
621
  $post->post_content = __('<!-- Add HTML code to the header or the footer.
622
 
623
  For example, you can use the following code for loading the jQuery library from Google CDN:
624
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
625
 
626
  or the following one for loading the Bootstrap library from MaxCDN:
627
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
628
 
629
  -- End of the comment --> ', 'custom-css-js') . PHP_EOL . PHP_EOL;
630
  }
1153
  }
1154
 
1155
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1156
  /**
1157
  * Render the checkboxes, radios, selects and inputs
1158
  */
languages/custom-css-js-fr_FR.po CHANGED
@@ -398,13 +398,13 @@ msgid ""
398
  "\n"
399
  "For example, you can use the following code for loading the jQuery library "
400
  "from Google CDN:\n"
401
- "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min."
402
  "js\"></script>\n"
403
  "\n"
404
  "or the following one for loading the Bootstrap library from MaxCDN:\n"
405
  "<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/"
406
- "bootstrap/3.4.1/css/bootstrap.min.css\" integrity=\"sha384-"
407
- "HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu\" "
408
  "crossorigin=\"anonymous\">\n"
409
  "\n"
410
  "-- End of the comment --> "
@@ -413,13 +413,13 @@ msgstr ""
413
  "\n"
414
  "Par exemple, utilisez le code suivant pour charger la bibliotheque jQuery "
415
  "depuis le CDN de Google :\n"
416
- "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min."
417
  "js\"></script>\n"
418
  "\n"
419
  "ou celui-ci pour charger la bibliotheque Bootstrap depuis MaxCDN:\n"
420
  "<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/"
421
- "bootstrap/3.4.1/css/bootstrap.min.css\" integrity=\"sha384-HSMxcRTRxnN"
422
- "+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu\" crossorigin="
423
  "\"anonymous\">\n"
424
  "\n"
425
  "-- Fin du commentaire --> "
398
  "\n"
399
  "For example, you can use the following code for loading the jQuery library "
400
  "from Google CDN:\n"
401
+ "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min."
402
  "js\"></script>\n"
403
  "\n"
404
  "or the following one for loading the Bootstrap library from MaxCDN:\n"
405
  "<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/"
406
+ "bootstrap/4.3.1/css/bootstrap.min.css\" integrity=\"sha384-"
407
+ "ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T\" "
408
  "crossorigin=\"anonymous\">\n"
409
  "\n"
410
  "-- End of the comment --> "
413
  "\n"
414
  "Par exemple, utilisez le code suivant pour charger la bibliotheque jQuery "
415
  "depuis le CDN de Google :\n"
416
+ "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min."
417
  "js\"></script>\n"
418
  "\n"
419
  "ou celui-ci pour charger la bibliotheque Bootstrap depuis MaxCDN:\n"
420
  "<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/"
421
+ "bootstrap/4.3.1/css/bootstrap.min.css\" integrity=\"sha384-"
422
+ "ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T\" "
423
  "\"anonymous\">\n"
424
  "\n"
425
  "-- Fin du commentaire --> "
languages/custom-css-js-pl_PL.po CHANGED
@@ -381,13 +381,13 @@ msgid ""
381
  "\n"
382
  "For example, you can use the following code for loading the jQuery library "
383
  "from Google CDN:\n"
384
- "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min."
385
  "js\"></script>\n"
386
  "\n"
387
  "or the following one for loading the Bootstrap library from MaxCDN:\n"
388
  "<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/"
389
- "bootstrap/3.4.1/css/bootstrap.min.css\" integrity=\"sha384-"
390
- "HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu\" "
391
  "crossorigin=\"anonymous\">\n"
392
  "\n"
393
  "-- End of the comment --> "
381
  "\n"
382
  "For example, you can use the following code for loading the jQuery library "
383
  "from Google CDN:\n"
384
+ "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min."
385
  "js\"></script>\n"
386
  "\n"
387
  "or the following one for loading the Bootstrap library from MaxCDN:\n"
388
  "<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/"
389
+ "bootstrap/4.3.1/css/bootstrap.min.css\" integrity=\"sha384-"
390
+ "ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T\" "
391
  "crossorigin=\"anonymous\">\n"
392
  "\n"
393
  "-- End of the comment --> "
languages/custom-css-js-tr_TR.po CHANGED
@@ -379,13 +379,13 @@ msgid ""
379
  "\n"
380
  "For example, you can use the following code for loading the jQuery library "
381
  "from Google CDN:\n"
382
- "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min."
383
  "js\"></script>\n"
384
  "\n"
385
  "or the following one for loading the Bootstrap library from MaxCDN:\n"
386
  "<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/"
387
- "bootstrap/3.4.1/css/bootstrap.min.css\" integrity=\"sha384-"
388
- "HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu\" "
389
  "crossorigin=\"anonymous\">\n"
390
  "\n"
391
  "-- End of the comment --> "
379
  "\n"
380
  "For example, you can use the following code for loading the jQuery library "
381
  "from Google CDN:\n"
382
+ "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min."
383
  "js\"></script>\n"
384
  "\n"
385
  "or the following one for loading the Bootstrap library from MaxCDN:\n"
386
  "<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/"
387
+ "bootstrap/4.3.1/css/bootstrap.min.css\" integrity=\"sha384-"
388
+ "ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T\" "
389
  "crossorigin=\"anonymous\">\n"
390
  "\n"
391
  "-- End of the comment --> "
languages/custom-css-js.pot CHANGED
@@ -376,13 +376,13 @@ msgid ""
376
  "\n"
377
  "For example, you can use the following code for loading the jQuery library "
378
  "from Google CDN:\n"
379
- "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min."
380
  "js\"></script>\n"
381
  "\n"
382
  "or the following one for loading the Bootstrap library from MaxCDN:\n"
383
  "<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/"
384
- "bootstrap/3.4.1/css/bootstrap.min.css\" integrity=\"sha384-"
385
- "HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu\" "
386
  "crossorigin=\"anonymous\">\n"
387
  "\n"
388
  "-- End of the comment --> "
376
  "\n"
377
  "For example, you can use the following code for loading the jQuery library "
378
  "from Google CDN:\n"
379
+ "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min."
380
  "js\"></script>\n"
381
  "\n"
382
  "or the following one for loading the Bootstrap library from MaxCDN:\n"
383
  "<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/"
384
+ "bootstrap/4.3.1/css/bootstrap.min.css\" integrity=\"sha384-"
385
+ "ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T\" "
386
  "crossorigin=\"anonymous\">\n"
387
  "\n"
388
  "-- End of the comment --> "
readme.txt CHANGED
@@ -4,8 +4,8 @@ Contributors: diana_burduja
4
  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.2
8
- Stable tag: 3.27
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
  Requires PHP: 5.2.4
@@ -105,6 +105,11 @@ $. Add/Edit HTML
105
 
106
  == Changelog ==
107
 
 
 
 
 
 
108
  = 3.27 =
109
  * 08/08/2019
110
  * Compatibility with the "CMSMasters Content Composer" plugin
4
  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.3
8
+ Stable tag: 3.28
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.28 =
109
+ * 11/05/2019
110
+ * Tweak: update the Bootstrap and jQuery library links
111
+ * Declare compatibility with WordPress 5.3
112
+
113
  = 3.27 =
114
  * 08/08/2019
115
  * Compatibility with the "CMSMasters Content Composer" plugin