Custom CSS and Javascript - Version 2.0.11

Version Description

  • Fix: Issue with previous update if the admin JavaScript file was already in the browser cache
Download this release

Release Info

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

Code changes from version 2.0.10 to 2.0.11

Files changed (2) hide show
  1. custom-css-and-javascript.php +4 -2
  2. readme.txt +4 -1
custom-css-and-javascript.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Custom CSS and JavaScript
4
  * Description: Easily add custom CSS and JavaScript code to your WordPress site.
5
- * Version: 2.0.10
6
  * Author: Potent Plugins
7
  * Author URI: http://potentplugins.com/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-plugin-author-uri
8
  * License: GNU General Public License version 3 or later
@@ -27,6 +27,8 @@
27
  along with this program. If not, see <https://www.gnu.org/licenses/>.
28
  */
29
 
 
 
30
  add_action('wp_enqueue_scripts', 'hm_custom_css_js_scripts', 999999);
31
  function hm_custom_css_js_scripts() {
32
  if (current_user_can('edit_theme_options')) {
@@ -71,7 +73,7 @@ function hm_custom_css_js_admin_scripts($hook) {
71
  wp_enqueue_style('hm_custom_css_js_codemirror', plugins_url('codemirror/codemirror.css', __FILE__));
72
  wp_enqueue_style('hm_custom_css_js_codemirror_dialog', plugins_url('codemirror/addon/dialog/dialog.css', __FILE__));
73
  wp_enqueue_style('hm_custom_css_js_codemirror_matchesonscrollbar', plugins_url('codemirror/addon/search/matchesonscrollbar.css', __FILE__));
74
- wp_enqueue_script('hm_custom_css_js', plugins_url('js/custom-css-and-javascript.js', __FILE__));
75
  wp_localize_script('hm_custom_css_js', 'pp_custom_css_js_config', array(
76
  'api_url' => esc_url( admin_url( 'admin-ajax.php?ppccj_nonce='.wp_create_nonce('ppccj_ajax') ) )
77
  ));
2
  /**
3
  * Plugin Name: Custom CSS and JavaScript
4
  * Description: Easily add custom CSS and JavaScript code to your WordPress site.
5
+ * Version: 2.0.11
6
  * Author: Potent Plugins
7
  * Author URI: http://potentplugins.com/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-plugin-author-uri
8
  * License: GNU General Public License version 3 or later
27
  along with this program. If not, see <https://www.gnu.org/licenses/>.
28
  */
29
 
30
+ define('HM_CUSTOM_CSS_JS_VERSION', '2.0.11');
31
+
32
  add_action('wp_enqueue_scripts', 'hm_custom_css_js_scripts', 999999);
33
  function hm_custom_css_js_scripts() {
34
  if (current_user_can('edit_theme_options')) {
73
  wp_enqueue_style('hm_custom_css_js_codemirror', plugins_url('codemirror/codemirror.css', __FILE__));
74
  wp_enqueue_style('hm_custom_css_js_codemirror_dialog', plugins_url('codemirror/addon/dialog/dialog.css', __FILE__));
75
  wp_enqueue_style('hm_custom_css_js_codemirror_matchesonscrollbar', plugins_url('codemirror/addon/search/matchesonscrollbar.css', __FILE__));
76
+ wp_enqueue_script('hm_custom_css_js', plugins_url('js/custom-css-and-javascript.js', __FILE__), array('jquery'), HM_CUSTOM_CSS_JS_VERSION);
77
  wp_localize_script('hm_custom_css_js', 'pp_custom_css_js_config', array(
78
  'api_url' => esc_url( admin_url( 'admin-ajax.php?ppccj_nonce='.wp_create_nonce('ppccj_ajax') ) )
79
  ));
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://potentplugins.com/donate/?utm_source=custom-css-and-javascr
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: 5.3.2
7
- Stable tag: 2.0.10
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -52,6 +52,9 @@ Alternatively, you can manually upload the plugin to your wp-content/plugins dir
52
 
53
  == Changelog ==
54
 
 
 
 
55
  = 2.0.10 =
56
  * Miscellaneous improvements
57
  * Updated licensing (GPLv3+)
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: 5.3.2
7
+ Stable tag: 2.0.11
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
52
 
53
  == Changelog ==
54
 
55
+ = 2.0.11 =
56
+ * Fix: Issue with previous update if the admin JavaScript file was already in the browser cache
57
+
58
  = 2.0.10 =
59
  * Miscellaneous improvements
60
  * Updated licensing (GPLv3+)