Skip to content

Commit

Permalink
Merge pull request #15 from dkonakh/feature/wp-5.5
Browse files Browse the repository at this point in the history
Updated justvariables up to wp5.5
  • Loading branch information
aprokopenko authored Aug 14, 2020
2 parents 0ab39a0 + 58d76b6 commit 427cfd9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion assets/settings_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jQuery(document).ready(function(){
});

// init delete button
jQuery('#jv_settings a.delete_variable').live('click', function(){
jQuery('#jv_settings a.delete_variable').on('click', function(){
if( confirm( text_just_variables.confirm_delete ) ){
jQuery(this).parents('tr:first').remove();
}
Expand Down
8 changes: 4 additions & 4 deletions just-variables.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Tags: theme, variables, template, text data
Author: JustCoded / Alex Prokopenko
Author URI: http://justcoded.com/
Version: 1.2.2
Version: 1.2.3
*/

define('JV_ROOT', dirname(__FILE__));
Expand All @@ -29,12 +29,12 @@ function pa($mixed, $stop = false) {
add_action('plugins_loaded', 'jv_init');
function jv_init(){
if( !is_admin() ) return;

/**
* load translations
*/
load_plugin_textdomain( JV_TEXTDOMAIN, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );

// add admin page
add_action( 'admin_menu', 'jv_admin_menu' );
}
Expand All @@ -53,7 +53,7 @@ function jv_get_variable_value( $var ){
if( !empty($values[$var]) ){
return $values[$var];
}

return NULL;
}

Expand Down
1 change: 0 additions & 1 deletion just-variables.theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ function jv_theme_variables_register_settins(){
function jv_theme_vars_admin_page(){
?>
<div class="wrap">
<?php screen_icon(); ?>
<h2><?php printf( __( '%s Theme Variables', JV_TEXTDOMAIN ), wp_get_theme() ); ?></h2>
<?php settings_errors(); ?>

Expand Down
4 changes: 3 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Author: JustCoded / Alex Prokopenko
Author URI: http://justcoded.com/
Tags: theme, variables, template, text data
Requires at least: 3.4
Tested up to: 4.5.2
Tested up to: 5.5
Donate link: http://justcoded.com/just-labs/just-wordpress-theme-variables-plugin/#donate
License: GNU General Public License v2
Stable tag: trunk
Expand Down Expand Up @@ -49,6 +49,8 @@ To upgrade remove the old plugin folder. After than follow the installation step
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.

== Changelog ==
* Version 1.2.3:
* Bug fix: Removed deprecated function screen_icon() and updated issue with jQuery Migrate
* Version 1.2.2:
* Bug fix: Updated deprecated function get_current_theme()
* Version 1.2.1:
Expand Down

0 comments on commit 427cfd9

Please sign in to comment.