WordPress Button Plugin MaxButtons - Version 7.13.1

Version Description

  • Fixed - Wrong redirect on copy / move to trash actions.
Download this release

Release Info

Developer basszje
Plugin Icon 128x128 WordPress Button Plugin MaxButtons
Version 7.13.1
Comparing to
See all releases

Code changes from version 7.13 to 7.13.1

Files changed (4) hide show
  1. classes/buttons.php +4 -1
  2. classes/max-utils.php +0 -6
  3. maxbuttons.php +3 -3
  4. readme.txt +5 -1
classes/buttons.php CHANGED
@@ -118,7 +118,8 @@ class maxButtons
118
  $button = MB()->getClass('button');
119
  $paged = isset($_POST['paged']) ? intval($_POST['paged']) : '';
120
 
121
- $redirect = admin_url() . 'admin.php?page=maxbuttons-list';
 
122
 
123
  if ($paged)
124
  $redirect = add_query_arg('paged', $paged, $redirect);
@@ -169,6 +170,8 @@ class maxButtons
169
 
170
  }
171
 
 
 
172
  if (isset($redirect)) {
173
  $response = array('redirection' => $redirect);
174
  echo json_encode($response);
118
  $button = MB()->getClass('button');
119
  $paged = isset($_POST['paged']) ? intval($_POST['paged']) : '';
120
 
121
+ $redirect = admin_url() . 'admin.php';
122
+ $page = 'maxbuttons-controller';
123
 
124
  if ($paged)
125
  $redirect = add_query_arg('paged', $paged, $redirect);
170
 
171
  }
172
 
173
+ $redirect = add_query_arg('page', $page, $redirect);
174
+
175
  if (isset($redirect)) {
176
  $response = array('redirection' => $redirect);
177
  echo json_encode($response);
classes/max-utils.php CHANGED
@@ -33,7 +33,6 @@ class maxUtils
33
  $nonce = isset($_POST['nonce']) ? $_POST['nonce'] : false;
34
  $message = __( sprintf("No Handler found for action %s ", $plugin_action), 'maxbuttons');
35
 
36
-
37
  if (! wp_verify_nonce($nonce, 'maxajax') )
38
  {
39
  $message = __('Nonce not verified (' . $nonce . ')', 'maxbuttons');
@@ -43,11 +42,6 @@ class maxUtils
43
  do_action('maxbuttons/ajax/' . $plugin_action, $_POST);
44
  }
45
 
46
- /*echo json_encode( array( 'status' => $status,
47
- 'message' => $message,
48
- )
49
- ); */
50
-
51
  wp_send_json_error( array('message' => $message) );
52
 
53
  }
33
  $nonce = isset($_POST['nonce']) ? $_POST['nonce'] : false;
34
  $message = __( sprintf("No Handler found for action %s ", $plugin_action), 'maxbuttons');
35
 
 
36
  if (! wp_verify_nonce($nonce, 'maxajax') )
37
  {
38
  $message = __('Nonce not verified (' . $nonce . ')', 'maxbuttons');
42
  do_action('maxbuttons/ajax/' . $plugin_action, $_POST);
43
  }
44
 
 
 
 
 
 
45
  wp_send_json_error( array('message' => $message) );
46
 
47
  }
maxbuttons.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: MaxButtons
4
  Plugin URI: http://maxbuttons.com
5
  Description: The best WordPress button generator. This is the free version; the Pro version <a href="http://maxbuttons.com/?ref=mbfree">can be found here</a>.
6
- Version: 7.13
7
  Author: Max Foundry
8
  Author URI: http://maxfoundry.com
9
  Text Domain: maxbuttons
@@ -16,9 +16,9 @@ namespace MaxButtons;
16
  if (! defined('MAXBUTTONS_ROOT_FILE'))
17
  define("MAXBUTTONS_ROOT_FILE", __FILE__);
18
  if (! defined('MAXBUTTONS_VERSION_NUM'))
19
- define('MAXBUTTONS_VERSION_NUM', '7.13');
20
 
21
- define('MAXBUTTONS_RELEASE',"10 October 2019");
22
 
23
  if (! function_exists('MaxButtons\maxbutton_double_load'))
24
  {
3
  Plugin Name: MaxButtons
4
  Plugin URI: http://maxbuttons.com
5
  Description: The best WordPress button generator. This is the free version; the Pro version <a href="http://maxbuttons.com/?ref=mbfree">can be found here</a>.
6
+ Version: 7.13.1
7
  Author: Max Foundry
8
  Author URI: http://maxfoundry.com
9
  Text Domain: maxbuttons
16
  if (! defined('MAXBUTTONS_ROOT_FILE'))
17
  define("MAXBUTTONS_ROOT_FILE", __FILE__);
18
  if (! defined('MAXBUTTONS_VERSION_NUM'))
19
+ define('MAXBUTTONS_VERSION_NUM', '7.13.1');
20
 
21
+ define('MAXBUTTONS_RELEASE',"15 October 2019");
22
 
23
  if (! function_exists('MaxButtons\maxbutton_double_load'))
24
  {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: wordpress button plugin, share button, wordpress buttons, css3 button gene
4
  Requires at least: 4.8
5
  Tested up to: 5.2.3
6
  Requires PHP: 5.6
7
- Stable tag: 7.13
8
 
9
  WordPress button plugin so powerful and easy to use anyone can create beautiful buttons, share buttons and social icons.
10
 
@@ -255,6 +255,10 @@ Secondly, please use latin only characters for button name ( Basic settings) and
255
 
256
  == Changelog ==
257
 
 
 
 
 
258
  = 7.13 =
259
 
260
  * Updates to code base
4
  Requires at least: 4.8
5
  Tested up to: 5.2.3
6
  Requires PHP: 5.6
7
+ Stable tag: 7.13.1
8
 
9
  WordPress button plugin so powerful and easy to use anyone can create beautiful buttons, share buttons and social icons.
10
 
255
 
256
  == Changelog ==
257
 
258
+ = 7.13.1 =
259
+
260
+ * Fixed - Wrong redirect on copy / move to trash actions.
261
+
262
  = 7.13 =
263
 
264
  * Updates to code base