Skip to content

Commit 58d76b6

Browse files
author
dkonakh
committed
Updated justvariables up to wp5.5
1 parent 0ab39a0 commit 58d76b6

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

assets/settings_page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jQuery(document).ready(function(){
2222
});
2323

2424
// init delete button
25-
jQuery('#jv_settings a.delete_variable').live('click', function(){
25+
jQuery('#jv_settings a.delete_variable').on('click', function(){
2626
if( confirm( text_just_variables.confirm_delete ) ){
2727
jQuery(this).parents('tr:first').remove();
2828
}

just-variables.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Tags: theme, variables, template, text data
77
Author: JustCoded / Alex Prokopenko
88
Author URI: http://justcoded.com/
9-
Version: 1.2.2
9+
Version: 1.2.3
1010
*/
1111

1212
define('JV_ROOT', dirname(__FILE__));
@@ -29,12 +29,12 @@ function pa($mixed, $stop = false) {
2929
add_action('plugins_loaded', 'jv_init');
3030
function jv_init(){
3131
if( !is_admin() ) return;
32-
32+
3333
/**
3434
* load translations
3535
*/
3636
load_plugin_textdomain( JV_TEXTDOMAIN, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
37-
37+
3838
// add admin page
3939
add_action( 'admin_menu', 'jv_admin_menu' );
4040
}
@@ -53,7 +53,7 @@ function jv_get_variable_value( $var ){
5353
if( !empty($values[$var]) ){
5454
return $values[$var];
5555
}
56-
56+
5757
return NULL;
5858
}
5959

just-variables.theme.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ function jv_theme_variables_register_settins(){
4040
function jv_theme_vars_admin_page(){
4141
?>
4242
<div class="wrap">
43-
<?php screen_icon(); ?>
4443
<h2><?php printf( __( '%s Theme Variables', JV_TEXTDOMAIN ), wp_get_theme() ); ?></h2>
4544
<?php settings_errors(); ?>
4645

readme.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Author: JustCoded / Alex Prokopenko
66
Author URI: http://justcoded.com/
77
Tags: theme, variables, template, text data
88
Requires at least: 3.4
9-
Tested up to: 4.5.2
9+
Tested up to: 5.5
1010
Donate link: http://justcoded.com/just-labs/just-wordpress-theme-variables-plugin/#donate
1111
License: GNU General Public License v2
1212
Stable tag: trunk
@@ -49,6 +49,8 @@ To upgrade remove the old plugin folder. After than follow the installation step
4949
A: If you have inserted a template function from this plugin to your templates, then you probably get error about missing functions. You will need to clean up your template files from function calls.
5050

5151
== Changelog ==
52+
* Version 1.2.3:
53+
* Bug fix: Removed deprecated function screen_icon() and updated issue with jQuery Migrate
5254
* Version 1.2.2:
5355
* Bug fix: Updated deprecated function get_current_theme()
5456
* Version 1.2.1:

0 commit comments

Comments
 (0)