MainWP Child - Version 4.2.5

Version Description

  • 8-25-2022 =
  • Added: Support for the new extension
  • Fixed: An issue with displaying PHP errors
  • Fixed: A problem with the database optimization process related to the Maintenance extension
Download this release

Release Info

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

Code changes from version 4.2.4 to 4.2.5

class/class-mainwp-child-callable.php CHANGED
@@ -91,6 +91,7 @@ class MainWP_Child_Callable {
91
  'extra_execution' => 'extra_execution',
92
  'wpvivid_backuprestore' => 'wpvivid_backuprestore',
93
  'check_abandoned' => 'check_abandoned',
 
94
  );
95
 
96
  /**
@@ -763,6 +764,17 @@ class MainWP_Child_Callable {
763
  MainWP_WordPress_SEO::instance()->action();
764
  }
765
 
 
 
 
 
 
 
 
 
 
 
 
766
  /**
767
  * Method client_report()
768
  *
91
  'extra_execution' => 'extra_execution',
92
  'wpvivid_backuprestore' => 'wpvivid_backuprestore',
93
  'check_abandoned' => 'check_abandoned',
94
+ 'wp_seopress' => 'wp_seopress',
95
  );
96
 
97
  /**
764
  MainWP_WordPress_SEO::instance()->action();
765
  }
766
 
767
+ /**
768
+ * Method wp_seopress()
769
+ *
770
+ * Fire off the action() function.
771
+ *
772
+ * @uses \MainWP\Child\MainWP_Child_WP_Seopress::action();
773
+ */
774
+ public function wp_seopress() {
775
+ MainWP_Child_WP_Seopress::instance()->action();
776
+ }
777
+
778
  /**
779
  * Method client_report()
780
  *
class/class-mainwp-child-db.php CHANGED
@@ -179,7 +179,7 @@ class MainWP_Child_DB {
179
  */
180
  public static function is_result( $result ) {
181
  if ( self::use_mysqli() ) {
182
- return ( $result instanceof mysqli_result );
183
  } else {
184
  return is_resource( $result );
185
  }
179
  */
180
  public static function is_result( $result ) {
181
  if ( self::use_mysqli() ) {
182
+ return ( $result instanceof \mysqli_result );
183
  } else {
184
  return is_resource( $result );
185
  }
class/class-mainwp-child.php CHANGED
@@ -33,7 +33,7 @@ class MainWP_Child {
33
  *
34
  * @var string MainWP Child plugin version.
35
  */
36
- public static $version = '4.2.4';
37
 
38
  /**
39
  * Private variable containing the latest MainWP Child update version.
33
  *
34
  * @var string MainWP Child plugin version.
35
  */
36
+ public static $version = '4.2.5';
37
 
38
  /**
39
  * Private variable containing the latest MainWP Child update version.
class/class-mainwp-security.php CHANGED
@@ -451,7 +451,18 @@ class MainWP_Security {
451
  * @return bool true|false If the PHP error reporting has been disabled, return true, if not, return false.
452
  */
453
  public static function remove_php_reporting_ok() {
454
- return ! ( ( ( 0 != ini_get( 'display_errors' ) ) && ( 'off' != ini_get( 'display_errors' ) ) ) || ( ( 0 != ini_get( 'display_startup_errors' ) ) && ( 'off' != ini_get( 'display_startup_errors' ) ) ) );
 
 
 
 
 
 
 
 
 
 
 
455
  }
456
 
457
  /**
451
  * @return bool true|false If the PHP error reporting has been disabled, return true, if not, return false.
452
  */
453
  public static function remove_php_reporting_ok() {
454
+ $is_ok = true;
455
+ $display_off = ini_get( 'display_errors' );
456
+ if ( ! empty( $display_off ) ) {
457
+ $display_off = strtolower( $display_off );
458
+ $is_ok = ( $is_ok || 'off' === $display_off );
459
+ }
460
+ $display_startup_off = ini_get( 'display_startup_errors' );
461
+ if ( ! empty( $display_startup_off ) ) {
462
+ $display_startup_off = strtolower( $display_startup_off );
463
+ $is_ok = ( $is_ok || 'off' === $display_startup_off );
464
+ }
465
+ return $is_ok;
466
  }
467
 
468
  /**
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.2.4
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.2.5
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.0.1
9
  Requires PHP: 7.0
10
- Stable tag: 4.2.4
11
  License: GPLv3 or later
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
13
 
@@ -111,13 +111,18 @@ Sure we have a quick FAQ with a lot more questions and answers [here](https://ma
111
 
112
  == Changelog ==
113
 
 
 
 
 
 
114
  = 4.2.4 - 7-14-2022 =
115
  * Fixed: An issue with falling back to the Filesystem API in chrooted configurations
116
  * Fixed: Compatibility issues with the new version of the WP Staging plugin
117
  * Fixed: A problem with overwriting page attributes
118
 
119
  = 4.2.3 - 5-16-2022 =
120
- Added: Swift Performance Pro to the Purge Cache system
121
 
122
  = 4.2.2 - 5-10-2022 =
123
  * Fixed: An issue with detecting abandoned plugins and themes on specific setups
7
  Requires at least: 5.4
8
  Tested up to: 6.0.1
9
  Requires PHP: 7.0
10
+ Stable tag: 4.2.5
11
  License: GPLv3 or later
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
13
 
111
 
112
  == Changelog ==
113
 
114
+ = 4.2.5 - 8-25-2022 =
115
+ * Added: Support for the new extension
116
+ * Fixed: An issue with displaying PHP errors
117
+ * Fixed: A problem with the database optimization process related to the Maintenance extension
118
+
119
  = 4.2.4 - 7-14-2022 =
120
  * Fixed: An issue with falling back to the Filesystem API in chrooted configurations
121
  * Fixed: Compatibility issues with the new version of the WP Staging plugin
122
  * Fixed: A problem with overwriting page attributes
123
 
124
  = 4.2.3 - 5-16-2022 =
125
+ * Added: Swift Performance Pro to the Purge Cache system
126
 
127
  = 4.2.2 - 5-10-2022 =
128
  * Fixed: An issue with detecting abandoned plugins and themes on specific setups