MainWP Child - Version 3.5.7

Version Description

  • 5-6-19 =
  • Fixed: multiple PHP Warnings
  • Fixed: multiple conflicts with 3rd party products
  • Fixed: an issue with Page Speed data for custom URLs
  • Fixed: an issue with logging WP Time Capsule backups on specific setups
  • Fixed: an issue with short login session
  • Added: multiple security enhancements
  • Added: support for the WP Staging Pro (free features only)
  • Added: support for plugin/theme installation requests to HTTP Basic Auth protected MainWP Dashboards
Download this release

Release Info

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

Code changes from version 3.5.6 to 3.5.7

class/class-mainwp-child-back-up-buddy.php CHANGED
@@ -610,6 +610,12 @@ class MainWP_Child_Back_Up_Buddy {
610
  $information['schedules'] = pb_backupbuddy::$options['schedules'];
611
  $information['next_schedule_index'] = pb_backupbuddy::$options['next_schedule_index'];
612
  $information['schedules_run_time'] = $this->get_schedules_run_time();
 
 
 
 
 
 
613
  $information['result'] = 'SUCCESS';
614
  return $information;
615
  }
610
  $information['schedules'] = pb_backupbuddy::$options['schedules'];
611
  $information['next_schedule_index'] = pb_backupbuddy::$options['next_schedule_index'];
612
  $information['schedules_run_time'] = $this->get_schedules_run_time();
613
+
614
+ // to fix missing destination notice
615
+ if (isset(pb_backupbuddy::$options['remote_destinations'])) { // update
616
+ $information['remote_destinations'] = pb_backupbuddy::$options['remote_destinations'];
617
+ }
618
+
619
  $information['result'] = 'SUCCESS';
620
  return $information;
621
  }
class/class-mainwp-child-branding.php CHANGED
@@ -35,6 +35,7 @@ class MainWP_Child_Branding {
35
 
36
  $opts['contact_label'] = $label;
37
  $opts['extra_settings'] = get_option( 'mainwp_branding_extra_settings' );
 
38
  }
39
 
40
  if ( !isset($opts['contact_label']) || empty($opts['contact_label']) ) {
@@ -382,7 +383,7 @@ class MainWP_Child_Branding {
382
  add_action( 'in_admin_footer', array( $this, 'in_admin_footer' ) );
383
  } else if (is_user_logged_in()) {
384
  // front end
385
- add_action( 'add_admin_bar_menus', array( $this, 'add_admin_bar_menus' ));
386
  }
387
  $opts = $this->child_branding_options;
388
 
@@ -429,7 +430,7 @@ class MainWP_Child_Branding {
429
 
430
  // to fix
431
  add_action( 'admin_menu', array( &$this, 'admin_menu' ) );//
432
- if ( $opts['disable_wp_branding'] !== 'Y' ) {
433
  add_filter( 'wp_footer', array( &$this, 'branding_global_footer' ), 15 );
434
  add_action( 'wp_dashboard_setup', array( &$this, 'custom_dashboard_widgets' ), 999 );
435
  // branding site generator
@@ -986,7 +987,7 @@ class MainWP_Child_Branding {
986
  MainWP_Helper::update_option( 'mainwp_child_branding_settings', $this->child_branding_options );
987
  }
988
 
989
- public function add_admin_bar_menus() {
990
 
991
  $hide_slugs = apply_filters('mainwp_child_hide_update_notice' , array());
992
 
35
 
36
  $opts['contact_label'] = $label;
37
  $opts['extra_settings'] = get_option( 'mainwp_branding_extra_settings' );
38
+ MainWP_Helper::update_option( 'mainwp_child_branding_settings', $opts );
39
  }
40
 
41
  if ( !isset($opts['contact_label']) || empty($opts['contact_label']) ) {
383
  add_action( 'in_admin_footer', array( $this, 'in_admin_footer' ) );
384
  } else if (is_user_logged_in()) {
385
  // front end
386
+ add_action( 'wp_after_admin_bar_render', array( $this, 'after_admin_bar_render' ));
387
  }
388
  $opts = $this->child_branding_options;
389
 
430
 
431
  // to fix
432
  add_action( 'admin_menu', array( &$this, 'admin_menu' ) );//
433
+ if ( !isset($opts['disable_wp_branding']) || $opts['disable_wp_branding'] !== 'Y' ) {
434
  add_filter( 'wp_footer', array( &$this, 'branding_global_footer' ), 15 );
435
  add_action( 'wp_dashboard_setup', array( &$this, 'custom_dashboard_widgets' ), 999 );
436
  // branding site generator
987
  MainWP_Helper::update_option( 'mainwp_child_branding_settings', $this->child_branding_options );
988
  }
989
 
990
+ public function after_admin_bar_render() {
991
 
992
  $hide_slugs = apply_filters('mainwp_child_hide_update_notice' , array());
993
 
class/class-mainwp-child-ithemes-security.php CHANGED
@@ -139,7 +139,7 @@ class MainWP_Child_iThemes_Security {
139
  add_action( 'admin_menu', array( $this, 'remove_menu' ) );
140
  add_action( 'admin_init', array( $this, 'admin_init' ) );
141
  add_action( 'admin_head', array( &$this, 'custom_admin_css' ) );
142
- if ( isset($_GET['page']) && ($_GET['page'] == 'itsec' || $_GET['page'] == 'itsec-logs' || $_GET['page'] == 'itsec-security-check') ) {
143
  wp_redirect( get_option( 'siteurl' ) . '/wp-admin/index.php' );
144
  exit();
145
  }
139
  add_action( 'admin_menu', array( $this, 'remove_menu' ) );
140
  add_action( 'admin_init', array( $this, 'admin_init' ) );
141
  add_action( 'admin_head', array( &$this, 'custom_admin_css' ) );
142
+ if ( isset($_GET['page']) && ($_GET['page'] == 'itsec' || $_GET['page'] == 'itsec-security-check') ) {
143
  wp_redirect( get_option( 'siteurl' ) . '/wp-admin/index.php' );
144
  exit();
145
  }
class/class-mainwp-child-pagespeed.php CHANGED
@@ -273,7 +273,7 @@ class MainWP_Child_Pagespeed {
273
  $information['error'] = __( 'The API is busy checking other pages, please try again later.', 'gpagespeedi' );
274
  } else {
275
  //do_action( 'googlepagespeedinsightsworker', array(), $forceRecheck );
276
- do_action( 'run_gpi', $forceRecheck ); // to fix
277
  $information['checked_pages'] = 1;
278
  }
279
  }
@@ -342,7 +342,7 @@ class MainWP_Child_Pagespeed {
342
  //$page_stats_column = $strategy . '_page_stats';
343
 
344
 
345
- $data_typestocheck = self::getTypesToCheck( 'all' );
346
 
347
  $gpi_page_stats = $wpdb->prefix . 'gpi_page_stats';
348
  if ( ! empty( $data_typestocheck ) ) {
@@ -360,7 +360,7 @@ class MainWP_Child_Pagespeed {
360
  $allpagedata = array();
361
  }
362
 
363
- $reports_typestocheck = self::getTypesToCheck( 'all' );
364
  $gpi_page_reports = $wpdb->prefix . 'gpi_page_reports';
365
 
366
  if ( ! empty( $reports_typestocheck ) ) {
@@ -435,7 +435,7 @@ class MainWP_Child_Pagespeed {
435
  );
436
  }
437
 
438
- static function getTypesToCheck($restrict_type = 'all') {
439
 
440
  $types = array();
441
  $gpi_options = get_option('gpagespeedi_options');
@@ -496,6 +496,25 @@ class MainWP_Child_Pagespeed {
496
  }
497
  }
498
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
499
  if(!empty($typestocheck)) {
500
  $types[0] = '';
501
  foreach($typestocheck as $type)
273
  $information['error'] = __( 'The API is busy checking other pages, please try again later.', 'gpagespeedi' );
274
  } else {
275
  //do_action( 'googlepagespeedinsightsworker', array(), $forceRecheck );
276
+ do_action( 'run_gpi', $forceRecheck ); // to fix
277
  $information['checked_pages'] = 1;
278
  }
279
  }
342
  //$page_stats_column = $strategy . '_page_stats';
343
 
344
 
345
+ $data_typestocheck = self::get_filter_options( 'all' );
346
 
347
  $gpi_page_stats = $wpdb->prefix . 'gpi_page_stats';
348
  if ( ! empty( $data_typestocheck ) ) {
360
  $allpagedata = array();
361
  }
362
 
363
+ $reports_typestocheck = self::get_filter_options( 'all' );
364
  $gpi_page_reports = $wpdb->prefix . 'gpi_page_reports';
365
 
366
  if ( ! empty( $reports_typestocheck ) ) {
435
  );
436
  }
437
 
438
+ static function get_filter_options($restrict_type = 'all') {
439
 
440
  $types = array();
441
  $gpi_options = get_option('gpagespeedi_options');
496
  }
497
  }
498
 
499
+ if ( $gpi_options['check_custom_urls'] ) {
500
+ global $wpdb;
501
+
502
+ $gpi_custom_urls = $wpdb->prefix . 'gpi_custom_urls';
503
+ $custom_url_types = $wpdb->get_col(
504
+ "
505
+ SELECT DISTINCT type
506
+ FROM $gpi_custom_urls
507
+ "
508
+ );
509
+
510
+ if ( ! empty( $custom_url_types ) ) {
511
+ foreach ( $custom_url_types as $custom_url_type ) {
512
+ $typestocheck[] = 'type = %s';
513
+ $types[1][] = $custom_url_type;
514
+ }
515
+ }
516
+ }
517
+
518
  if(!empty($typestocheck)) {
519
  $types[0] = '';
520
  foreach($typestocheck as $type)
class/class-mainwp-child-server-information.php CHANGED
@@ -826,8 +826,8 @@ class MainWP_Child_Server_Information {
826
  ?>
827
  <tr>
828
  <td>&nbsp;</td>
829
- <td><?php echo $plugin['Name']; ?></td>
830
- <td><?php echo $plugin['Version']; ?></td>
831
  <td><?php echo is_plugin_active($slug) ? 'Active' : 'Inactive'; ?></td>
832
  <td>&nbsp;</td>
833
  </tr>
@@ -1569,11 +1569,6 @@ class MainWP_Child_Server_Information {
1569
 
1570
  public static function renderWPConfig() {
1571
  ?>
1572
- <style>
1573
- #mainwp-code-display code {
1574
- background: none !important;
1575
- }
1576
- </style>
1577
  <div class="postbox" id="mainwp-code-display">
1578
  <h3 class="hndle" style="padding: 8px 12px; font-size: 14px;"><span>WP-Config.php</span></h3>
1579
 
@@ -1673,9 +1668,9 @@ class MainWP_Child_Server_Information {
1673
  foreach ($details as $row) {
1674
  ?>
1675
  <tr>
1676
- <th style="width: 20%"><strong><?php echo $row['title']; ?></strong></th>
1677
- <td style="width: 20%"><strong><?php echo $row['value']; ?></strong></td>
1678
- <td><?php echo $row['desc']; ?></td>
1679
  </tr>
1680
  <?php
1681
  }
826
  ?>
827
  <tr>
828
  <td>&nbsp;</td>
829
+ <td><?php echo esc_html($plugin['Name']); ?></td>
830
+ <td><?php echo esc_html($plugin['Version']); ?></td>
831
  <td><?php echo is_plugin_active($slug) ? 'Active' : 'Inactive'; ?></td>
832
  <td>&nbsp;</td>
833
  </tr>
1569
 
1570
  public static function renderWPConfig() {
1571
  ?>
 
 
 
 
 
1572
  <div class="postbox" id="mainwp-code-display">
1573
  <h3 class="hndle" style="padding: 8px 12px; font-size: 14px;"><span>WP-Config.php</span></h3>
1574
 
1668
  foreach ($details as $row) {
1669
  ?>
1670
  <tr>
1671
+ <th style="width: 20%"><strong><?php echo esc_html($row['title']); ?></strong></th>
1672
+ <td style="width: 20%"><strong><?php echo esc_html($row['value']); ?></strong></td>
1673
+ <td><?php echo esc_html($row['desc']); ?></td>
1674
  </tr>
1675
  <?php
1676
  }
class/class-mainwp-child-staging.php CHANGED
@@ -31,6 +31,8 @@ class MainWP_Child_Staging {
31
  public function __construct() {
32
  require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
33
  if ( is_plugin_active( 'wp-staging/wp-staging.php' ) && defined('WPSTG_PLUGIN_DIR')) {
 
 
34
  $this->is_plugin_installed = true;
35
  }
36
 
@@ -429,6 +431,10 @@ class MainWP_Child_Staging {
429
  unset( $value->response['wp-staging/wp-staging.php'] );
430
  }
431
 
 
 
 
 
432
  return $value;
433
  }
434
  }
31
  public function __construct() {
32
  require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
33
  if ( is_plugin_active( 'wp-staging/wp-staging.php' ) && defined('WPSTG_PLUGIN_DIR')) {
34
+ $this->is_plugin_installed = true;
35
+ } else if ( is_plugin_active( 'wp-staging-pro/wp-staging-pro.php' ) ) {
36
  $this->is_plugin_installed = true;
37
  }
38
 
431
  unset( $value->response['wp-staging/wp-staging.php'] );
432
  }
433
 
434
+ if ( isset( $value->response['wp-staging-pro/wp-staging-pro.php'] ) ) {
435
+ unset( $value->response['wp-staging-pro/wp-staging-pro.php'] );
436
+ }
437
+
438
  return $value;
439
  }
440
  }
class/class-mainwp-child-timecapsule.php CHANGED
@@ -40,10 +40,10 @@ class MainWP_Child_Timecapsule {
40
 
41
 
42
  public function init() {
43
- if ( get_option( 'mainwp_time_capsule_ext_enabled' ) !== 'Y' )
44
  return;
45
 
46
- if (!$this->is_plugin_installed)
47
  return;
48
 
49
  add_action( 'mainwp_child_site_stats', array( $this, 'do_site_stats' ) );
@@ -70,8 +70,6 @@ class MainWP_Child_Timecapsule {
70
  }
71
 
72
  $information = array();
73
- if (get_option( 'mainwp_time_capsule_ext_enabled' ) !== 'Y')
74
- MainWP_Helper::update_option( 'mainwp_time_capsule_ext_enabled', 'Y', 'yes' );
75
 
76
  $options_helper = new Wptc_Options_Helper();
77
  $options = WPTC_Factory::get('config');
@@ -245,6 +243,8 @@ class MainWP_Child_Timecapsule {
245
  public function syncOthersData( $information, $data = array() ) {
246
  if ( isset( $data['syncWPTimeCapsule'] ) && $data['syncWPTimeCapsule'] ) {
247
  $information['syncWPTimeCapsule'] = $this->get_sync_data();
 
 
248
  }
249
  return $information;
250
  }
@@ -724,6 +724,10 @@ function get_sibling_files_callback_wptc() {
724
  }
725
 
726
  $last_time = time() - 24 * 7 * 2 * 60 * 60; // 2 weeks ago
 
 
 
 
727
  $all_last_backups = $this->getBackups( $last_time );
728
 
729
  if (is_array($all_last_backups)) {
40
 
41
 
42
  public function init() {
43
+ if (!$this->is_plugin_installed)
44
  return;
45
 
46
+ if ( get_option( 'mainwp_time_capsule_ext_enabled' ) !== 'Y' )
47
  return;
48
 
49
  add_action( 'mainwp_child_site_stats', array( $this, 'do_site_stats' ) );
70
  }
71
 
72
  $information = array();
 
 
73
 
74
  $options_helper = new Wptc_Options_Helper();
75
  $options = WPTC_Factory::get('config');
243
  public function syncOthersData( $information, $data = array() ) {
244
  if ( isset( $data['syncWPTimeCapsule'] ) && $data['syncWPTimeCapsule'] ) {
245
  $information['syncWPTimeCapsule'] = $this->get_sync_data();
246
+ if (get_option( 'mainwp_time_capsule_ext_enabled' ) !== 'Y')
247
+ MainWP_Helper::update_option( 'mainwp_time_capsule_ext_enabled', 'Y', 'yes' );
248
  }
249
  return $information;
250
  }
724
  }
725
 
726
  $last_time = time() - 24 * 7 * 2 * 60 * 60; // 2 weeks ago
727
+ $lasttime_logged = MainWP_Helper::get_lasttime_backup('wptimecapsule');
728
+ if (empty($lasttime_logged))
729
+ $last_time = time() - 24 * 7 * 8 * 60 * 60; // 8 weeks ago
730
+
731
  $all_last_backups = $this->getBackups( $last_time );
732
 
733
  if (is_array($all_last_backups)) {
class/class-mainwp-child-updraft-plus-backups.php CHANGED
@@ -940,7 +940,11 @@ class MainWP_Child_Updraft_Plus_Backups {
940
 
941
  do_action( $event, apply_filters( 'updraft_backupnow_options', $options, array() ) );
942
 
943
- return $msg;
 
 
 
 
944
 
945
  // not used anymore
946
  // if (wp_schedule_single_event(time()+5, $event, array($backupnow_nocloud)) === false) {
940
 
941
  do_action( $event, apply_filters( 'updraft_backupnow_options', $options, array() ) );
942
 
943
+ //return $msg;
944
+
945
+ // Control returns when the backup finished; but, the browser connection should have been closed before
946
+ die;
947
+
948
 
949
  // not used anymore
950
  // if (wp_schedule_single_event(time()+5, $event, array($backupnow_nocloud)) === false) {
class/class-mainwp-child.php CHANGED
@@ -115,7 +115,7 @@ if ( isset( $_GET['skeleton_keyuse_nonce_key'] ) && isset( $_GET['skeleton_keyus
115
  }
116
 
117
  class MainWP_Child {
118
- public static $version = '3.5.6';
119
  private $update_version = '1.5';
120
 
121
  private $callableFunctions = array(
@@ -580,7 +580,7 @@ class MainWP_Child {
580
  remove_filter( 'pre_site_transient_update_plugins', $this->filterFunction, 99 );
581
 
582
  set_site_transient( 'mainwp_update_plugins_cached', $plugins, DAY_IN_SECONDS);
583
- wp_destroy_current_session(); // to fix issue multi user session
584
 
585
  }
586
 
@@ -590,7 +590,7 @@ class MainWP_Child {
590
  remove_filter( 'pre_site_transient_update_themes', $this->filterFunction, 99 );
591
 
592
  set_site_transient( 'mainwp_update_themes_cached', $themes, DAY_IN_SECONDS);
593
- wp_destroy_current_session(); // to fix issue multi user session
594
  }
595
 
596
 
@@ -607,7 +607,7 @@ class MainWP_Child {
607
  if (isset($this->callableFunctions[ $function ])) {
608
  call_user_func( array( $this, $this->callableFunctions[ $function ] ) );
609
  }
610
- wp_destroy_current_session(); // to fix issue multi user session
611
  }
612
  }
613
 
@@ -1593,7 +1593,7 @@ class MainWP_Child {
1593
  if ( 1 === (int) get_option( 'mainwpKeywordLinks' ) ) {
1594
  new MainWP_Keyword_Links();
1595
  if ( ! is_admin() ) {
1596
- add_filter( 'the_content', array( MainWP_Keyword_Links::Instance(), 'filter_content' ), 100 );
1597
  }
1598
  MainWP_Keyword_Links::Instance()->update_htaccess(); // if needed
1599
  MainWP_Keyword_Links::Instance()->redirect_cloak();
@@ -4013,6 +4013,14 @@ class MainWP_Child {
4013
  $information['plugins_outdate_info'] = MainWP_Child_Plugins_Check::Instance()->get_plugins_outdate_info();
4014
  $information['themes_outdate_info'] = MainWP_Child_Themes_Check::Instance()->get_themes_outdate_info();
4015
 
 
 
 
 
 
 
 
 
4016
  try {
4017
  do_action('mainwp_child_site_stats');
4018
  } catch(Exception $e) {
115
  }
116
 
117
  class MainWP_Child {
118
+ public static $version = '3.5.7';
119
  private $update_version = '1.5';
120
 
121
  private $callableFunctions = array(
580
  remove_filter( 'pre_site_transient_update_plugins', $this->filterFunction, 99 );
581
 
582
  set_site_transient( 'mainwp_update_plugins_cached', $plugins, DAY_IN_SECONDS);
583
+ //wp_destroy_current_session(); // to fix issue multi user session
584
 
585
  }
586
 
590
  remove_filter( 'pre_site_transient_update_themes', $this->filterFunction, 99 );
591
 
592
  set_site_transient( 'mainwp_update_themes_cached', $themes, DAY_IN_SECONDS);
593
+ //wp_destroy_current_session(); // to fix issue multi user session
594
  }
595
 
596
 
607
  if (isset($this->callableFunctions[ $function ])) {
608
  call_user_func( array( $this, $this->callableFunctions[ $function ] ) );
609
  }
610
+ //wp_destroy_current_session(); // to fix issue multi user session
611
  }
612
  }
613
 
1593
  if ( 1 === (int) get_option( 'mainwpKeywordLinks' ) ) {
1594
  new MainWP_Keyword_Links();
1595
  if ( ! is_admin() ) {
1596
+ //add_filter( 'the_content', array( MainWP_Keyword_Links::Instance(), 'filter_content' ), 100 );
1597
  }
1598
  MainWP_Keyword_Links::Instance()->update_htaccess(); // if needed
1599
  MainWP_Keyword_Links::Instance()->redirect_cloak();
4013
  $information['plugins_outdate_info'] = MainWP_Child_Plugins_Check::Instance()->get_plugins_outdate_info();
4014
  $information['themes_outdate_info'] = MainWP_Child_Themes_Check::Instance()->get_themes_outdate_info();
4015
 
4016
+ if (isset( $_POST['user'] )) {
4017
+ $user = get_user_by( 'login', $_POST['user'] );
4018
+ if ( $user && property_exists($user, 'ID') && $user->ID) {
4019
+ $information['admin_nicename'] = $user->data->user_nicename;
4020
+ $information['admin_useremail'] = $user->data->user_email;
4021
+ }
4022
+ }
4023
+
4024
  try {
4025
  do_action('mainwp_child_site_stats');
4026
  } catch(Exception $e) {
class/class-mainwp-helper.php CHANGED
@@ -143,7 +143,7 @@ class MainWP_Helper {
143
  // to fix issue re-create new attachment
144
  if ( $check_file_existed ) {
145
  if ( file_exists( $local_img_path ) ) {
146
-
147
  if ( filesize( $local_img_path ) == filesize( $temporary_file ) ) { // file exited
148
  $result = self::get_maybe_existed_attached_id( $local_img_url );
149
  if ( is_array($result) ) { // found attachment
@@ -1210,27 +1210,27 @@ class MainWP_Helper {
1210
  switch($by) {
1211
  case 'backupbuddy':
1212
  if ( !is_plugin_active( 'backupbuddy/backupbuddy.php' ) && !is_plugin_active( 'Backupbuddy/backupbuddy.php' )) {
1213
- return -1;
1214
  }
1215
  break;
1216
  case 'backupwordpress':
1217
  if ( !is_plugin_active( 'backupwordpress/backupwordpress.php' )) {
1218
- return -1;
1219
  }
1220
  break;
1221
  case 'backwpup':
1222
  if ( !is_plugin_active( 'backwpup/backwpup.php' ) && !is_plugin_active( 'backwpup-pro/backwpup.php' ) ) {
1223
- return -1;
1224
  }
1225
  break;
1226
  case 'updraftplus':
1227
  if ( !is_plugin_active( 'updraftplus/updraftplus.php' )) {
1228
- return -1;
1229
  }
1230
  break;
1231
  case 'wptimecapsule':
1232
  if ( !is_plugin_active( 'wp-time-capsule/wp-time-capsule.php' )) {
1233
- return -1;
1234
  }
1235
  break;
1236
  default:
143
  // to fix issue re-create new attachment
144
  if ( $check_file_existed ) {
145
  if ( file_exists( $local_img_path ) ) {
146
+
147
  if ( filesize( $local_img_path ) == filesize( $temporary_file ) ) { // file exited
148
  $result = self::get_maybe_existed_attached_id( $local_img_url );
149
  if ( is_array($result) ) { // found attachment
1210
  switch($by) {
1211
  case 'backupbuddy':
1212
  if ( !is_plugin_active( 'backupbuddy/backupbuddy.php' ) && !is_plugin_active( 'Backupbuddy/backupbuddy.php' )) {
1213
+ return 0;
1214
  }
1215
  break;
1216
  case 'backupwordpress':
1217
  if ( !is_plugin_active( 'backupwordpress/backupwordpress.php' )) {
1218
+ return 0;
1219
  }
1220
  break;
1221
  case 'backwpup':
1222
  if ( !is_plugin_active( 'backwpup/backwpup.php' ) && !is_plugin_active( 'backwpup-pro/backwpup.php' ) ) {
1223
+ return 0;
1224
  }
1225
  break;
1226
  case 'updraftplus':
1227
  if ( !is_plugin_active( 'updraftplus/updraftplus.php' )) {
1228
+ return 0;
1229
  }
1230
  break;
1231
  case 'wptimecapsule':
1232
  if ( !is_plugin_active( 'wp-time-capsule/wp-time-capsule.php' )) {
1233
+ return 0;
1234
  }
1235
  break;
1236
  default:
mainwp-child.php CHANGED
@@ -6,7 +6,7 @@
6
  Author: MainWP
7
  Author URI: https://mainwp.com
8
  Text Domain: mainwp-child
9
- Version: 3.5.6
10
  */
11
  //if ( ( isset( $_REQUEST['heatmap'] ) && '1' === $_REQUEST['heatmap'] ) || ( isset( $_REQUEST['mainwpsignature'] ) && ( ! empty( $_REQUEST['mainwpsignature'] ) ) ) ) {
12
  // header( 'X-Frame-Options: ALLOWALL' );
6
  Author: MainWP
7
  Author URI: https://mainwp.com
8
  Text Domain: mainwp-child
9
+ Version: 3.5.7
10
  */
11
  //if ( ( isset( $_REQUEST['heatmap'] ) && '1' === $_REQUEST['heatmap'] ) || ( isset( $_REQUEST['mainwpsignature'] ) && ( ! empty( $_REQUEST['mainwpsignature'] ) ) ) ) {
12
  // header( 'X-Frame-Options: ALLOWALL' );
readme.txt CHANGED
@@ -6,8 +6,8 @@ Author: mainwp
6
  Author URI: https://mainwp.com
7
  Plugin URI: https://mainwp.com
8
  Requires at least: 3.6
9
- Tested up to: 5.1.1
10
- Stable tag: 3.5.6
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -71,6 +71,16 @@ To see full documentation and FAQs please visit [MainWP Documentation](https://m
71
 
72
  == Changelog ==
73
 
 
 
 
 
 
 
 
 
 
 
74
  = 3.5.6 - 3-25-19 =
75
  * Fixed: an issue with checking Page Speed data
76
  * Fixed: an issue with empty update data
6
  Author URI: https://mainwp.com
7
  Plugin URI: https://mainwp.com
8
  Requires at least: 3.6
9
+ Tested up to: 5.2
10
+ Stable tag: 3.5.7
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
71
 
72
  == Changelog ==
73
 
74
+ = 3.5.7 - 5-6-19 =
75
+ * Fixed: multiple PHP Warnings
76
+ * Fixed: multiple conflicts with 3rd party products
77
+ * Fixed: an issue with Page Speed data for custom URLs
78
+ * Fixed: an issue with logging WP Time Capsule backups on specific setups
79
+ * Fixed: an issue with short login session
80
+ * Added: multiple security enhancements
81
+ * Added: support for the WP Staging Pro (free features only)
82
+ * Added: support for plugin/theme installation requests to HTTP Basic Auth protected MainWP Dashboards
83
+
84
  = 3.5.6 - 3-25-19 =
85
  * Fixed: an issue with checking Page Speed data
86
  * Fixed: an issue with empty update data