MainWP Child - Version 4.3.0.1

Version Description

  • 11-24-2022 =
  • Fixed: An issue with logging Non-MainWP changes for the connected admin user
  • Removed: Unused DB field
Download this release

Release Info

Developer mainwp
Plugin Icon 128x128 MainWP Child
Version 4.3.0.1
Comparing to
See all releases

Code changes from version 4.3 to 4.3.0.1

class/class-mainwp-child-actions.php CHANGED
@@ -654,21 +654,21 @@ class MainWP_Child_Actions {
654
  return false;
655
  }
656
 
657
- $notification = apply_filters( 'mainwp_child_actions_save_data', true, $context, $action, $args, $message );
658
-
659
- if ( ! $notification ) {
660
- return false;
661
- }
662
-
663
  $user_id = get_current_user_id();
664
  $user = get_user_by( 'id', $user_id );
665
 
666
  $connected_user = get_option( 'mainwp_child_connected_admin', '' );
667
 
668
- if ( ! empty( $user->user_login ) && $connected_user == $user->user_login ) {
669
  return false; // not save action.
670
  }
671
 
 
 
 
 
 
 
672
  $user_role_label = '';
673
  $role = '';
674
  $roles = MainWP_Utility::instance()->get_roles();
654
  return false;
655
  }
656
 
 
 
 
 
 
 
657
  $user_id = get_current_user_id();
658
  $user = get_user_by( 'id', $user_id );
659
 
660
  $connected_user = get_option( 'mainwp_child_connected_admin', '' );
661
 
662
+ if ( ! empty( $user->user_login ) && $connected_user == $user->user_login && MainWP_Helper::is_dashboard_request() ) {
663
  return false; // not save action.
664
  }
665
 
666
+ $actions_save = apply_filters( 'mainwp_child_actions_save_data', true, $context, $action, $args, $message, $user_id );
667
+
668
+ if ( ! $actions_save ) {
669
+ return false;
670
+ }
671
+
672
  $user_role_label = '';
673
  $role = '';
674
  $roles = MainWP_Utility::instance()->get_roles();
class/class-mainwp-child.php CHANGED
@@ -33,14 +33,14 @@ class MainWP_Child {
33
  *
34
  * @var string MainWP Child plugin version.
35
  */
36
- public static $version = '4.3';
37
 
38
  /**
39
  * Private variable containing the latest MainWP Child update version.
40
  *
41
  * @var string MainWP Child update version.
42
  */
43
- private $update_version = '1.5';
44
 
45
  /**
46
  * Public variable containing the MainWP Child plugin slug.
@@ -234,6 +234,10 @@ class MainWP_Child {
234
  return;
235
  }
236
 
 
 
 
 
237
  MainWP_Helper::update_option( 'mainwp_child_update_version', $this->update_version, 'yes' );
238
  }
239
 
33
  *
34
  * @var string MainWP Child plugin version.
35
  */
36
+ public static $version = '4.3.0.1';
37
 
38
  /**
39
  * Private variable containing the latest MainWP Child update version.
40
  *
41
  * @var string MainWP Child update version.
42
  */
43
+ private $update_version = '1.6';
44
 
45
  /**
46
  * Public variable containing the MainWP Child plugin slug.
234
  return;
235
  }
236
 
237
+ if ( version_compare( $update_version, '1.6', '<' ) ) {
238
+ delete_option( 'mainwp_child_subpages ' );
239
+ }
240
+
241
  MainWP_Helper::update_option( 'mainwp_child_update_version', $this->update_version, 'yes' );
242
  }
243
 
class/class-mainwp-helper.php CHANGED
@@ -789,6 +789,16 @@ class MainWP_Helper {
789
  }
790
 
791
 
 
 
 
 
 
 
 
 
 
 
792
  /**
793
  * Method check_files_exists()
794
  *
789
  }
790
 
791
 
792
+ /**
793
+ * Method is_dashboard_request()
794
+ *
795
+ * If it is dashboard request.
796
+ */
797
+ public static function is_dashboard_request() {
798
+ return isset( $_POST['mainwpsignature'] ) && isset( $_POST['function'] ) ? true : false;
799
+ }
800
+
801
+
802
  /**
803
  * Method check_files_exists()
804
  *
mainwp-child.php CHANGED
@@ -12,7 +12,7 @@
12
  * Author: MainWP
13
  * Author URI: https://mainwp.com
14
  * Text Domain: mainwp-child
15
- * Version: 4.3
16
  * Requires at least: 5.4
17
  * Requires PHP: 7.0
18
  */
12
  * Author: MainWP
13
  * Author URI: https://mainwp.com
14
  * Text Domain: mainwp-child
15
+ * Version: 4.3.0.1
16
  * Requires at least: 5.4
17
  * Requires PHP: 7.0
18
  */
readme.txt CHANGED
@@ -7,7 +7,7 @@ Plugin URI: https://mainwp.com
7
  Requires at least: 5.4
8
  Tested up to: 6.1.1
9
  Requires PHP: 7.0
10
- Stable tag: 4.3
11
  License: GPLv3 or later
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
13
 
@@ -146,6 +146,10 @@ Sure we have a quick FAQ with a lot more questions and answers [here](https://ma
146
 
147
  == Changelog ==
148
 
 
 
 
 
149
  = 4.3 - 11-16-2022 =
150
  * Fixed: Multiple PHP warnings
151
  * Added: Support for new security checks
7
  Requires at least: 5.4
8
  Tested up to: 6.1.1
9
  Requires PHP: 7.0
10
+ Stable tag: 4.3.0.1
11
  License: GPLv3 or later
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
13
 
146
 
147
  == Changelog ==
148
 
149
+ = 4.3.0.1 - 11-24-2022 =
150
+ * Fixed: An issue with logging Non-MainWP changes for the connected admin user
151
+ * Removed: Unused DB field
152
+
153
  = 4.3 - 11-16-2022 =
154
  * Fixed: Multiple PHP warnings
155
  * Added: Support for new security checks