MainWP Child - Version 3.5.4.1

Version Description

  • 2-19-19 =
  • Added: proper attribution to plugin code used for Extensions
  • Removed: unused code
Download this release

Release Info

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

Code changes from version 3.5.4 to 3.5.4.1

class/class-mainwp-child-back-up-buddy.php CHANGED
@@ -1,5 +1,20 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  class MainWP_Child_Back_Up_Buddy {
4
  public static $instance = null;
5
  public $plugin_translate = 'mainwp-child';
1
  <?php
2
 
3
+ /*
4
+ *
5
+ * Credits
6
+ *
7
+ * Plugin-Name: BackupBuddy
8
+ * Plugin URI: http://ithemes.com/purchase/backupbuddy/
9
+ * Author: iThemes
10
+ * Author URI: http://ithemes.com/
11
+ * iThemes Package: backupbuddy
12
+ *
13
+ * The code is used for the MainWP Buddy Extension
14
+ * Extension URL: https://mainwp.com/extension/mainwpbuddy/
15
+ *
16
+ */
17
+
18
  class MainWP_Child_Back_Up_Buddy {
19
  public static $instance = null;
20
  public $plugin_translate = 'mainwp-child';
class/class-mainwp-child-back-up-wordpress.php CHANGED
@@ -1,5 +1,22 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  class MainWP_Child_Back_Up_Wordpress {
4
  public static $instance = null;
5
  public $is_plugin_installed = false;
1
  <?php
2
 
3
+
4
+ /*
5
+ *
6
+ * Credits
7
+ *
8
+ * Plugin-Name: BackUpWordPress
9
+ * Plugin URI: http://bwp.hmn.md/
10
+ * Author: Human Made Limited
11
+ * Author URI: http://hmn.md/
12
+ * License: GPL-2+
13
+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
14
+ *
15
+ * The code is used for the MainWP BackUpWordPress Extension
16
+ * Extension URL: https://mainwp.com/extension/backupwordpress/
17
+ *
18
+ */
19
+
20
  class MainWP_Child_Back_Up_Wordpress {
21
  public static $instance = null;
22
  public $is_plugin_installed = false;
class/class-mainwp-child-back-wp-up.php CHANGED
@@ -1,5 +1,21 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  if ( ! defined( 'MAINWP_BACKWPUP_DEVELOPMENT' ) ) {
4
  define( 'MAINWP_BACKWPUP_DEVELOPMENT', false );
5
  }
1
  <?php
2
 
3
+ /*
4
+ *
5
+ * Credits
6
+ *
7
+ * Plugin-Name: BackWPup
8
+ * Plugin URI: http://backwpup.com
9
+ * Author: Inpsyde GmbH
10
+ * Author URI: http://inpsyde.com
11
+ * License: GPLv3
12
+ * License URI: http://www.gnu.org/licenses/gpl-3.0
13
+ *
14
+ * The code is used for the MainWP BackWPup Extension
15
+ * Extension URL: https://mainwp.com/extension/backwpup/
16
+ *
17
+ */
18
+
19
  if ( ! defined( 'MAINWP_BACKWPUP_DEVELOPMENT' ) ) {
20
  define( 'MAINWP_BACKWPUP_DEVELOPMENT', false );
21
  }
class/class-mainwp-child-ithemes-security.php CHANGED
@@ -1,5 +1,20 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  class MainWP_Child_iThemes_Security {
4
  public static $instance = null;
5
  public $is_plugin_installed = false;
1
  <?php
2
 
3
+ /*
4
+ *
5
+ * Credits
6
+ *
7
+ * Plugin-Name: iThemes Security
8
+ * Plugin URI: https://ithemes.com/security
9
+ * Author: iThemes
10
+ * Author URI: https://ithemes.com
11
+ * License: GPLv2
12
+ *
13
+ * The code is used for the MainWP iThemes Security Extension
14
+ * Extension URL: https://mainwp.com/extension/ithemes-security/
15
+ *
16
+ */
17
+
18
  class MainWP_Child_iThemes_Security {
19
  public static $instance = null;
20
  public $is_plugin_installed = false;
class/class-mainwp-child-links-checker.php CHANGED
@@ -1,5 +1,18 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  class MainWP_Child_Links_Checker {
4
 
5
  public static $instance = null;
1
  <?php
2
 
3
+ /*
4
+ *
5
+ * Credits
6
+ *
7
+ * Plugin-Name: Broken Link Checker
8
+ * Plugin URI: https://wordpress.org/plugins/broken-link-checker/
9
+ * Author: Janis Elsts, Vladimir Prelovac
10
+ *
11
+ * The code is used for the MainWP Broken Links Checker Extension
12
+ * Extension URL: https://mainwp.com/extension/broken-links-checker/
13
+ *
14
+ */
15
+
16
  class MainWP_Child_Links_Checker {
17
 
18
  public static $instance = null;
class/class-mainwp-child-pagespeed.php CHANGED
@@ -1,5 +1,20 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  class MainWP_Child_Pagespeed {
4
 
5
  public static $instance = null;
1
  <?php
2
 
3
+ /*
4
+ *
5
+ * Credits
6
+ *
7
+ * Plugin-Name: Google Pagespeed Insights
8
+ * Plugin URI: http://mattkeys.me
9
+ * Author: Matt Keys
10
+ * Author URI: http://mattkeys.me
11
+ *
12
+ * The code is used for the MainWP Page Speed Extension
13
+ * Extension URL: https://mainwp.com/extension/page-speed/
14
+ *
15
+ */
16
+
17
+
18
  class MainWP_Child_Pagespeed {
19
 
20
  public static $instance = null;
class/class-mainwp-child-plugins-check.php CHANGED
@@ -1,11 +1,15 @@
1
  <?php
2
 
3
  /*
4
- Plugin: Vendi Abandoned Plugin Check
5
- Description: Provides information about abandoned plugins.
6
- Version: 3.1.1
7
- License: GPLv2
8
- Author: Vendi Advertising (Chris Haas)
 
 
 
 
9
  */
10
 
11
  class MainWP_Child_Plugins_Check {
1
  <?php
2
 
3
  /*
4
+ *
5
+ * Credits
6
+ *
7
+ * Plugin-Name: Vendi Abandoned Plugin Check
8
+ * Plugin URI: https://wordpress.org/plugins/vendi-abandoned-plugin-check/
9
+ * Author: Vendi Advertising (Chris Haas)
10
+ * Author URI: https://wp-staging.com
11
+ * License: GPLv2
12
+ *
13
  */
14
 
15
  class MainWP_Child_Plugins_Check {
class/class-mainwp-child-server-information.php CHANGED
@@ -1416,7 +1416,7 @@ class MainWP_Child_Server_Information {
1416
 
1417
 
1418
  /*
1419
- *Plugin Name: Error Log Dashboard Widget
1420
  *Plugin URI: http://wordpress.org/extend/plugins/error-log-dashboard-widget/
1421
  *Description: Robust zero-configuration and low-memory way to keep an eye on error log.
1422
  *Author: Andrey "Rarst" Savchenko
1416
 
1417
 
1418
  /*
1419
+ *Plugin-Name: Error Log Dashboard Widget
1420
  *Plugin URI: http://wordpress.org/extend/plugins/error-log-dashboard-widget/
1421
  *Description: Robust zero-configuration and low-memory way to keep an eye on error log.
1422
  *Author: Andrey "Rarst" Savchenko
class/class-mainwp-child-staging.php CHANGED
@@ -1,5 +1,21 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  class MainWP_Child_Staging {
4
 
5
  public static $instance = null;
1
  <?php
2
 
3
+ /*
4
+ *
5
+ * Credits
6
+ *
7
+ * Plugin-Name: WP Staging
8
+ * Plugin URI: https://wordpress.org/plugins/wp-staging
9
+ * Author: WP-Staging
10
+ * Author URI: https://wp-staging.com
11
+ * Contributors: ReneHermi, ilgityildirim
12
+ *
13
+ * The code is used for the MainWP Staging Extension
14
+ * Extension URL: https://mainwp.com/extension/staging/
15
+ *
16
+ */
17
+
18
+
19
  class MainWP_Child_Staging {
20
 
21
  public static $instance = null;
class/class-mainwp-child-themes-check.php CHANGED
@@ -1,11 +1,15 @@
1
  <?php
2
 
3
  /*
4
- Plugin: Vendi Abandoned Plugin Check
5
- Description: Provides information about abandoned plugins.
6
- Version: 3.1.1
7
- License: GPLv2
8
- Author: Vendi Advertising (Chris Haas)
 
 
 
 
9
  */
10
 
11
  class MainWP_Child_Themes_Check {
@@ -45,7 +49,7 @@ class MainWP_Child_Themes_Check {
45
 
46
  add_action( 'mainwp_child_deactivation', array( $this, 'cleanup_deactivation' ) );
47
  }
48
-
49
  }
50
 
51
  private function cleanup_basic() {
1
  <?php
2
 
3
  /*
4
+ *
5
+ * Credits
6
+ *
7
+ * Plugin-Name: Vendi Abandoned Plugin Check
8
+ * Plugin URI: https://wordpress.org/plugins/vendi-abandoned-plugin-check/
9
+ * Author: Vendi Advertising (Chris Haas)
10
+ * Author URI: https://wp-staging.com
11
+ * License: GPLv2
12
+ *
13
  */
14
 
15
  class MainWP_Child_Themes_Check {
49
 
50
  add_action( 'mainwp_child_deactivation', array( $this, 'cleanup_deactivation' ) );
51
  }
52
+
53
  }
54
 
55
  private function cleanup_basic() {
class/class-mainwp-child-timecapsule.php CHANGED
@@ -1,5 +1,19 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  class MainWP_Child_Timecapsule {
4
  public static $instance = null;
5
  public $is_plugin_installed = false;
1
  <?php
2
 
3
+ /*
4
+ *
5
+ * Credits
6
+ *
7
+ * Plugin-Name: WP Time Capsule
8
+ * Plugin URI: https://wptimecapsule.com
9
+ * Author: Revmakx
10
+ * Author URI: http://www.revmakx.com
11
+ *
12
+ * The code is used for the MainWP Time Capsule Extension
13
+ * Extension URL: https://mainwp.com/extension/time-capsule/
14
+ *
15
+ */
16
+
17
  class MainWP_Child_Timecapsule {
18
  public static $instance = null;
19
  public $is_plugin_installed = false;
class/class-mainwp-child-updraft-plus-backups.php CHANGED
@@ -1,5 +1,20 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  class MainWP_Child_Updraft_Plus_Backups {
4
  public static $instance = null;
5
  public $is_plugin_installed = false;
1
  <?php
2
 
3
+ /*
4
+ *
5
+ * Credits
6
+ *
7
+ * Plugin-Name: UpdraftPlus - Backup/Restore
8
+ * Plugin URI: https://updraftplus.com
9
+ * Author: UpdraftPlus.Com, DavidAnderson
10
+ * Author URI: https://updraftplus.com
11
+ * License: GPLv3 or later
12
+ *
13
+ * The code is used for the MainWP UpdraftPlus Extension
14
+ * Extension URL: https://mainwp.com/extension/updraftplus/
15
+ *
16
+ */
17
+
18
  class MainWP_Child_Updraft_Plus_Backups {
19
  public static $instance = null;
20
  public $is_plugin_installed = false;
class/class-mainwp-child-vulnerability-checker.php CHANGED
@@ -1,5 +1,21 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  class MainWP_Child_Vulnerability_Checker {
4
 
5
  public static $instance = null;
1
  <?php
2
 
3
+ /*
4
+ *
5
+ * Credits
6
+ *
7
+ * Plugin-Name: Vulnerability Alerts
8
+ * Plugin URI: http://wordpress.org/plugins/vulnerability-alerts/
9
+ * Author: Edir Pedro
10
+ * Author URI: http://edirpedro.com.br
11
+ * License: GPL2
12
+ * License URI: https://www.gnu.org/licenses/gpl-2.0.html
13
+ *
14
+ * The code is used for the MainWP Vulnerability Checker Extension
15
+ * Extension URL: https://mainwp.com/extension/vulnerability-checker/
16
+ *
17
+ */
18
+
19
  class MainWP_Child_Vulnerability_Checker {
20
 
21
  public static $instance = null;
class/class-mainwp-child-woocommerce-status.php CHANGED
@@ -1,5 +1,19 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  class MainWP_Child_WooCommerce_Status {
4
  public static $instance = null;
5
 
1
  <?php
2
 
3
+ /*
4
+ *
5
+ * Credits
6
+ *
7
+ * Plugin-Name: WooCommerce
8
+ * Plugin URI: https://woocommerce.com/
9
+ * Author: Automattic
10
+ * Author URI: https://woocommerce.com
11
+ *
12
+ * The code is used for the MainWP WooCommerce Status Extension
13
+ * Extension URL: https://mainwp.com/extension/woocommerce-status/
14
+ *
15
+ */
16
+
17
  class MainWP_Child_WooCommerce_Status {
18
  public static $instance = null;
19
 
class/class-mainwp-child-wordfence.php CHANGED
@@ -1,5 +1,19 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  class MainWP_Child_Wordfence {
4
  public static $instance = null;
5
  public $is_wordfence_installed = false;
@@ -1159,7 +1173,7 @@ SQL
1159
  $regenerateHtaccess = true;
1160
  }
1161
  }
1162
-
1163
  // $to_fix_boolean_values = array(
1164
  // 'scansEnabled_checkGSB',
1165
  // 'spamvertizeCheck',
1
  <?php
2
 
3
+ /*
4
+ *
5
+ * Credits
6
+ *
7
+ * Plugin-Name: Wordfence Security
8
+ * Plugin URI: http://www.wordfence.com/
9
+ * Author: Wordfence
10
+ * Author URI: http://www.wordfence.com/
11
+ *
12
+ * The code is used for the MainWP Wordfence Extension
13
+ * Extension URL: https://mainwp.com/extension/wordfence/
14
+ *
15
+ */
16
+
17
  class MainWP_Child_Wordfence {
18
  public static $instance = null;
19
  public $is_wordfence_installed = false;
1173
  $regenerateHtaccess = true;
1174
  }
1175
  }
1176
+
1177
  // $to_fix_boolean_values = array(
1178
  // 'scansEnabled_checkGSB',
1179
  // 'spamvertizeCheck',
class/class-mainwp-child-wp-rocket.php CHANGED
@@ -1,5 +1,20 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  class MainWP_Child_WP_Rocket {
4
  public static $instance = null;
5
 
1
  <?php
2
 
3
+ /*
4
+ *
5
+ * Credits
6
+ *
7
+ * Plugin-Name: WP Rocket
8
+ * Plugin URI: https://wp-rocket.me
9
+ * Author: WP Media
10
+ * Author URI: http://wp-media.me
11
+ * Licence: GPLv2 or later
12
+ *
13
+ * The code is used for the MainWP Rocket Extension
14
+ * Extension URL: https://mainwp.com/extension/rocket/
15
+ *
16
+ */
17
+
18
  class MainWP_Child_WP_Rocket {
19
  public static $instance = null;
20
 
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.4';
119
  private $update_version = '1.5';
120
 
121
  private $callableFunctions = array(
@@ -4192,6 +4192,21 @@ class MainWP_Child {
4192
  $args['numberposts'] = $pCount;
4193
  }
4194
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4195
  $wp_seo_enabled = false;
4196
  if ( isset( $_POST['WPSEOEnabled'] ) && $_POST['WPSEOEnabled']) {
4197
  if (is_plugin_active('wordpress-seo/wp-seo.php') && class_exists('WPSEO_Link_Column_Count') && class_exists('WPSEO_Meta')) {
115
  }
116
 
117
  class MainWP_Child {
118
+ public static $version = '3.5.4.1';
119
  private $update_version = '1.5';
120
 
121
  private $callableFunctions = array(
4192
  $args['numberposts'] = $pCount;
4193
  }
4194
 
4195
+ /*
4196
+ *
4197
+ * Credits
4198
+ *
4199
+ * Plugin-Name: Yoast SEO
4200
+ * Plugin URI: https://yoast.com/wordpress/plugins/seo/#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wpseoplugin
4201
+ * Author: Team Yoast
4202
+ * Author URI: https://yoast.com/
4203
+ * Licence: GPL v3
4204
+ *
4205
+ * The code is used for the MainWP WordPress SEO Extension
4206
+ * Extension URL: https://mainwp.com/extension/wordpress-seo/
4207
+ *
4208
+ */
4209
+
4210
  $wp_seo_enabled = false;
4211
  if ( isset( $_POST['WPSEOEnabled'] ) && $_POST['WPSEOEnabled']) {
4212
  if (is_plugin_active('wordpress-seo/wp-seo.php') && class_exists('WPSEO_Link_Column_Count') && class_exists('WPSEO_Meta')) {
class/class-mainwp-client-report.php CHANGED
@@ -13,7 +13,7 @@ class MainWP_Client_Report {
13
 
14
  public function init() {
15
  add_filter( 'mainwp-site-sync-others-data', array( $this, 'syncOthersData' ), 10, 2 );
16
- add_filter( 'wp_stream_connectors', array( 'MainWP_Client_Report', 'init_stream_connectors' ), 10, 1 );
17
  add_filter( 'mainwp_client_reports_connectors', array( 'MainWP_Client_Report', 'init_report_connectors' ), 10, 1 );
18
  add_action( 'mainwp_child_log', array( 'MainWP_Client_Report', 'do_reports_log' ) );
19
  }
@@ -33,6 +33,7 @@ class MainWP_Client_Report {
33
  }
34
 
35
 
 
36
  public static function init_stream_connectors( $classes ) {
37
  $connectors = array(
38
  'Backups',
13
 
14
  public function init() {
15
  add_filter( 'mainwp-site-sync-others-data', array( $this, 'syncOthersData' ), 10, 2 );
16
+ //add_filter( 'wp_stream_connectors', array( 'MainWP_Client_Report', 'init_stream_connectors' ), 10, 1 );
17
  add_filter( 'mainwp_client_reports_connectors', array( 'MainWP_Client_Report', 'init_report_connectors' ), 10, 1 );
18
  add_action( 'mainwp_child_log', array( 'MainWP_Client_Report', 'do_reports_log' ) );
19
  }
33
  }
34
 
35
 
36
+ // not used
37
  public static function init_stream_connectors( $classes ) {
38
  $connectors = array(
39
  'Backups',
class/class-mainwp-clone.php CHANGED
@@ -331,7 +331,7 @@ class MainWP_Clone {
331
  }
332
 
333
  /*
334
- Plugin Name: Add From Server
335
  Version: 3.2.0.3
336
  Plugin URI: http://dd32.id.au/wordpress-plugins/add-from-server/
337
  Description: Plugin to allow the Media Manager to add files from the webservers filesystem. <strong>Note:</strong> All files are copied to the uploads directory.
@@ -707,7 +707,7 @@ class MainWP_Clone {
707
  cloneBackupDownloadPolling = function ( siteId, pFile ) {
708
  if ( backupDownloadFinished ) return;
709
 
710
- var data = ({
711
  action: 'mainwp-child_clone_backupdownloadpoll',
712
  siteId: siteId,
713
  file: pFile
331
  }
332
 
333
  /*
334
+ Plugin-Name: Add From Server
335
  Version: 3.2.0.3
336
  Plugin URI: http://dd32.id.au/wordpress-plugins/add-from-server/
337
  Description: Plugin to allow the Media Manager to add files from the webservers filesystem. <strong>Note:</strong> All files are copied to the uploads directory.
707
  cloneBackupDownloadPolling = function ( siteId, pFile ) {
708
  if ( backupDownloadFinished ) return;
709
 
710
+ var data = mainwpchild_secure_data({
711
  action: 'mainwp-child_clone_backupdownloadpoll',
712
  siteId: siteId,
713
  file: pFile
class/class-mainwp-stream-connector-backups.php DELETED
@@ -1,83 +0,0 @@
1
- <?php
2
- if ( class_exists( 'WP_Stream\Connector' ) ) {
3
- class MainWP_Stream_Connector_Backups extends WP_Stream\Connector {
4
-
5
-
6
- /**
7
- * Connector slug
8
- *
9
- * @var string
10
- */
11
- public $name = 'mainwp_backups';
12
-
13
- /**
14
- * Actions registered for this connector
15
- *
16
- * @var array
17
- */
18
- public $actions = array(
19
- 'mainwp_backup',
20
- );
21
-
22
- public function is_dependency_satisfied() {
23
- return true;
24
- }
25
-
26
- /**
27
- * Return translated connector label
28
- *
29
- * @return string Translated connector label
30
- */
31
- public function get_label() {
32
- return __( 'MainWP Backups', 'default' );
33
- }
34
-
35
- /**
36
- * Return translated action labels
37
- *
38
- * @return array Action label translations
39
- */
40
- public function get_action_labels() {
41
- return array(
42
- 'mainwp_backup' => __( 'MainWP Backup', 'default' ),
43
- );
44
- }
45
-
46
-
47
- /**
48
- * Return translated context labels
49
- *
50
- * @return array Context label translations
51
- */
52
- public function get_context_labels() {
53
- return array(
54
- 'mainwp_backups' => __( 'MainWP Backups', 'mainwp-child' ),
55
- );
56
- }
57
-
58
- /**
59
- * Add action links to Stream drop row in admin list screen
60
- *
61
- * @filter wp_stream_action_links_{connector}
62
- *
63
- * @param array $links Previous links registered
64
- * @param int $record Stream record
65
- *
66
- * @return array Action links
67
- */
68
- public function action_links( $links, $record ) {
69
- return $links;
70
- }
71
-
72
- public function callback_mainwp_backup( $destination, $message, $size, $status, $type ) {
73
- self::log(
74
- $message,
75
- compact( 'destination', 'status', 'type', 'size' ),
76
- 0,
77
- 'mainwp_backups',
78
- 'mainwp_backup'
79
- );
80
- }
81
- }
82
- }
83
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
class/class-mainwp-stream-connector-sucuri.php DELETED
@@ -1,97 +0,0 @@
1
- <?php
2
- if ( class_exists( 'WP_Stream\Connector' ) ) {
3
- class MainWP_Stream_Connector_Sucuri extends WP_Stream\Connector {
4
-
5
-
6
- /**
7
- * Connector slug
8
- *
9
- * @var string
10
- */
11
- public $name = 'mainwp_sucuri';
12
-
13
- /**
14
- * Actions registered for this connector
15
- *
16
- * @var array
17
- */
18
- public $actions = array(
19
- 'mainwp_sucuri_scan',
20
- );
21
-
22
- public function is_dependency_satisfied() {
23
- return true;
24
- }
25
-
26
- /**
27
- * Return translated connector label
28
- *
29
- * @return string Translated connector label
30
- */
31
- public function get_label() {
32
- return __( 'MainWP Sucuri', 'default' );
33
- }
34
-
35
- /**
36
- * Return translated action labels
37
- *
38
- * @return array Action label translations
39
- */
40
- public function get_action_labels() {
41
- return array(
42
- 'mainwp_sucuri_scan' => __( 'Scan', 'default' ),
43
- );
44
- }
45
-
46
- /**
47
- * Return translated context labels
48
- *
49
- * @return array Context label translations
50
- */
51
- public function get_context_labels() {
52
- return array(
53
- 'mainwp_sucuri' => __( 'MainWP Sucuri', 'default' ),
54
- );
55
- }
56
-
57
- /**
58
- * Add action links to Stream drop row in admin list screen
59
- *
60
- * @filter wp_stream_action_links_{connector}
61
- *
62
- * @param array $links Previous links registered
63
- * @param int $record Stream record
64
- *
65
- * @return array Action links
66
- */
67
- public function action_links( $links, $record ) {
68
- return $links;
69
- }
70
-
71
- public function callback_mainwp_sucuri_scan( $data, $scan_status ) {
72
- $message = '';
73
- if ( 'success' === $scan_status ) {
74
- $message = __( 'Sucuri scan success', 'mainwp-child' );
75
- $scan_status = 'success';
76
- } else {
77
- $message = __( 'Sucuri scan failed', 'mainwp-child' );
78
- $scan_status = 'failed';
79
- }
80
-
81
- $scan_result = maybe_unserialize( base64_decode( $data ) );
82
- $status = $webtrust = '';
83
- if ( is_array( $scan_result ) ) {
84
- $status = isset( $scan_result['status'] ) ? $scan_result['status'] : '';
85
- $webtrust = isset( $scan_result['webtrust'] ) ? $scan_result['webtrust'] : '';
86
- }
87
- self::log(
88
- $message,
89
- compact( 'scan_status', 'status', 'webtrust' ),
90
- 0,
91
- 'mainwp_sucuri',
92
- 'mainwp_sucuri_scan'
93
- );
94
- }
95
- }
96
- }
97
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
class/class-mainwp-wordpress-seo.php CHANGED
@@ -1,5 +1,20 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  class MainWP_Wordpress_SEO {
4
  public static $instance = null;
5
 
1
  <?php
2
 
3
+ /*
4
+ *
5
+ * Credits
6
+ *
7
+ * Plugin-Name: Yoast SEO
8
+ * Plugin URI: https://yoast.com/wordpress/plugins/seo/#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wpseoplugin
9
+ * Author: Team Yoast
10
+ * Author URI: https://yoast.com/
11
+ * Licence: GPL v3
12
+ *
13
+ * The code is used for the MainWP WordPress SEO Extension
14
+ * Extension URL: https://mainwp.com/extension/wordpress-seo/
15
+ *
16
+ */
17
+
18
  class MainWP_Wordpress_SEO {
19
  public static $instance = null;
20
 
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.4
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.4.1
10
  */
11
  //if ( ( isset( $_REQUEST['heatmap'] ) && '1' === $_REQUEST['heatmap'] ) || ( isset( $_REQUEST['mainwpsignature'] ) && ( ! empty( $_REQUEST['mainwpsignature'] ) ) ) ) {
12
  // header( 'X-Frame-Options: ALLOWALL' );
readme.txt CHANGED
@@ -7,7 +7,7 @@ Author URI: https://mainwp.com
7
  Plugin URI: https://mainwp.com
8
  Requires at least: 3.6
9
  Tested up to: 5.0.3
10
- Stable tag: 3.5.4
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -71,6 +71,10 @@ To see full documentation and FAQs please visit [MainWP Documentation](https://m
71
 
72
  == Changelog ==
73
 
 
 
 
 
74
  = 3.5.4 - 2-14-19 =
75
  * Fixed: issues with displaying broken links data for specific setups
76
  * Fixed: compatibility issues with the latest PageSpeed Insights plugin version
7
  Plugin URI: https://mainwp.com
8
  Requires at least: 3.6
9
  Tested up to: 5.0.3
10
+ Stable tag: 3.5.4.1
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.4.1 - 2-19-19 =
75
+ * Added: proper attribution to plugin code used for Extensions
76
+ * Removed: unused code
77
+
78
  = 3.5.4 - 2-14-19 =
79
  * Fixed: issues with displaying broken links data for specific setups
80
  * Fixed: compatibility issues with the latest PageSpeed Insights plugin version