Version Description
- 02/23/2021
- Fix: fatal error with PHP8.0
Download this release
Release Info
Developer | diana_burduja |
Plugin | Simple Custom CSS and JS |
Version | 3.36 |
Comparing to | |
See all releases |
Code changes from version 3.35 to 3.36
- custom-css-js.php +3 -3
- includes/admin-screens.php +6 -7
- readme.txt +6 -2
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.
|
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: 3.0.0
|
15 |
-
* WC tested up to: 5.
|
16 |
*/
|
17 |
|
18 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -228,7 +228,7 @@ if ( ! class_exists( 'CustomCSSandJS' ) ) :
|
|
228 |
function set_constants() {
|
229 |
$dir = wp_upload_dir();
|
230 |
$constants = array(
|
231 |
-
'CCJ_VERSION' => '3.
|
232 |
'CCJ_UPLOAD_DIR' => $dir['basedir'] . '/custom-css-js',
|
233 |
'CCJ_UPLOAD_URL' => $dir['baseurl'] . '/custom-css-js',
|
234 |
'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.36
|
7 |
* Author: SilkyPress.com
|
8 |
* Author URI: https://www.silkypress.com
|
9 |
* License: GPL2
|
12 |
* Domain Path: /languages/
|
13 |
*
|
14 |
* WC requires at least: 3.0.0
|
15 |
+
* WC tested up to: 5.3
|
16 |
*/
|
17 |
|
18 |
if ( ! defined( 'ABSPATH' ) ) {
|
228 |
function set_constants() {
|
229 |
$dir = wp_upload_dir();
|
230 |
$constants = array(
|
231 |
+
'CCJ_VERSION' => '3.36',
|
232 |
'CCJ_UPLOAD_DIR' => $dir['basedir'] . '/custom-css-js',
|
233 |
'CCJ_UPLOAD_URL' => $dir['baseurl'] . '/custom-css-js',
|
234 |
'CCJ_PLUGIN_FILE' => __FILE__,
|
includes/admin-screens.php
CHANGED
@@ -759,7 +759,6 @@ End of comment */ ',
|
|
759 |
}
|
760 |
|
761 |
?>
|
762 |
-
<form style="position: relative; margin-top: .5em;">
|
763 |
|
764 |
<div class="code-mirror-buttons">
|
765 |
<div class="button-left"><span rel="tipsy" original-title="<?php _e( 'Beautify Code', 'custom-css-js-pro' ); ?>"><button type="button" tabindex="-1" id="ccj-beautifier"><i class="ccj-i-beautifier"></i></button></span></div>
|
@@ -793,7 +792,6 @@ End of comment */ ',
|
|
793 |
|
794 |
|
795 |
<input type="hidden" id="update-post_<?php echo $post->ID; ?>" value="<?php echo wp_create_nonce( 'update-post_' . $post->ID ); ?>" />
|
796 |
-
</form>
|
797 |
<?php
|
798 |
|
799 |
}
|
@@ -1415,7 +1413,11 @@ endif;
|
|
1415 |
*/
|
1416 |
function edit_form_before_permalink( $filename = '', $permalink = '', $filetype = 'css' ) {
|
1417 |
if ( isset( $_GET['language'] ) ) {
|
1418 |
-
$filetype = $_GET['language'];
|
|
|
|
|
|
|
|
|
1419 |
}
|
1420 |
|
1421 |
if ( ! is_string( $filename ) ) {
|
@@ -1433,15 +1435,12 @@ endif;
|
|
1433 |
if ( isset( $options['language'] ) ) {
|
1434 |
$filetype = $options['language'];
|
1435 |
}
|
1436 |
-
if ( ! @file_exists( CCJ_UPLOAD_DIR . '/' . $slug . '.' . $
|
1437 |
$slug = false;
|
1438 |
}
|
1439 |
$filename = ( $slug ) ? $slug : $post->ID;
|
1440 |
}
|
1441 |
|
1442 |
-
if ( ! in_array( $filetype, array( 'css', 'js' ) ) ) {
|
1443 |
-
return;
|
1444 |
-
}
|
1445 |
if ( empty( $permalink ) ) {
|
1446 |
$permalink = CCJ_UPLOAD_URL . '/' . $filename . '.' . $filetype;
|
1447 |
}
|
759 |
}
|
760 |
|
761 |
?>
|
|
|
762 |
|
763 |
<div class="code-mirror-buttons">
|
764 |
<div class="button-left"><span rel="tipsy" original-title="<?php _e( 'Beautify Code', 'custom-css-js-pro' ); ?>"><button type="button" tabindex="-1" id="ccj-beautifier"><i class="ccj-i-beautifier"></i></button></span></div>
|
792 |
|
793 |
|
794 |
<input type="hidden" id="update-post_<?php echo $post->ID; ?>" value="<?php echo wp_create_nonce( 'update-post_' . $post->ID ); ?>" />
|
|
|
795 |
<?php
|
796 |
|
797 |
}
|
1413 |
*/
|
1414 |
function edit_form_before_permalink( $filename = '', $permalink = '', $filetype = 'css' ) {
|
1415 |
if ( isset( $_GET['language'] ) ) {
|
1416 |
+
$filetype = strtolower(trim($_GET['language']));
|
1417 |
+
}
|
1418 |
+
|
1419 |
+
if ( ! in_array( $filetype, array( 'css', 'js' ) ) ) {
|
1420 |
+
return;
|
1421 |
}
|
1422 |
|
1423 |
if ( ! is_string( $filename ) ) {
|
1435 |
if ( isset( $options['language'] ) ) {
|
1436 |
$filetype = $options['language'];
|
1437 |
}
|
1438 |
+
if ( ! @file_exists( CCJ_UPLOAD_DIR . '/' . $slug . '.' . $filetype ) ) {
|
1439 |
$slug = false;
|
1440 |
}
|
1441 |
$filename = ( $slug ) ? $slug : $post->ID;
|
1442 |
}
|
1443 |
|
|
|
|
|
|
|
1444 |
if ( empty( $permalink ) ) {
|
1445 |
$permalink = CCJ_UPLOAD_URL . '/' . $filename . '.' . $filetype;
|
1446 |
}
|
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.
|
8 |
-
Stable tag: 3.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
Requires PHP: 5.2.4
|
@@ -105,6 +105,10 @@ $. Add/Edit HTML
|
|
105 |
|
106 |
== Changelog ==
|
107 |
|
|
|
|
|
|
|
|
|
108 |
= 3.35 =
|
109 |
* 01/19/2021
|
110 |
* Tweak: change dummy revision dates to fictional dates before 2000
|
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.7
|
8 |
+
Stable tag: 3.36
|
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.36 =
|
109 |
+
* 02/23/2021
|
110 |
+
* Fix: fatal error with PHP8.0
|
111 |
+
|
112 |
= 3.35 =
|
113 |
* 01/19/2021
|
114 |
* Tweak: change dummy revision dates to fictional dates before 2000
|