diff --git a/class/class-mainwp-child.php b/class/class-mainwp-child.php
index e5bdcf4..21eb1d9 100644
--- a/class/class-mainwp-child.php
+++ b/class/class-mainwp-child.php
@@ -559,13 +559,13 @@ class MainWP_Child {
class="howto">
/>
- ' . esc_html__( 'Your Unique Security ID is:', 'mainwp-child' ) . ' ' . esc_html( get_option( 'mainwp_child_uniqueId' ) ) . '';
} ?>
@@ -959,7 +959,7 @@ class MainWP_Child {
MainWP_Helper::error( __( 'No such user', 'mainwp-child' ) );
}
- if ( 10 !== $user->wp_user_level && ( ! isset( $user->user_level ) || 10 !== $user->user_level ) && ! current_user_can( 'level_10' ) ) {
+ if ( 10 != $user->wp_user_level && ( ! isset( $user->user_level ) || 10 != $user->user_level ) && ! current_user_can( 'level_10' ) ) {
MainWP_Helper::error( __( 'User is not an administrator', 'mainwp-child' ) );
}
@@ -1595,7 +1595,7 @@ class MainWP_Child {
MainWP_Helper::error( __( 'Public key already set, reset the MainWP plugin on your site and try again.', 'mainwp-child' ) );
}
- if ( '' !== get_option( 'mainwp_child_uniqueId' ) ) {
+ if ( '' != get_option( 'mainwp_child_uniqueId' ) ) {
if ( ! isset( $_POST['uniqueId'] ) || ( '' === $_POST['uniqueId'] ) ) {
MainWP_Helper::error( __( 'This Child Site is set to require a Unique Security ID - Please Enter It before connection can be established.', 'mainwp-child' ) );
} else if ( get_option( 'mainwp_child_uniqueId' ) !== $_POST['uniqueId'] ) {
diff --git a/class/class-mainwp-client-report.php b/class/class-mainwp-client-report.php
index 695f779..fe9ae98 100644
--- a/class/class-mainwp-client-report.php
+++ b/class/class-mainwp-client-report.php
@@ -25,7 +25,7 @@ class MainWP_Client_Report {
);
foreach ( $connectors as $connector ) {
- $class_name = "MainWPStreamConnector$connector";
+ $class_name = "MainWP_Child_Reports_Connector_$connector";
if ( ! class_exists( $class_name ) ) {
continue;
}
@@ -48,7 +48,10 @@ class MainWP_Client_Report {
);
foreach ( $connectors as $connector ) {
- $class = "MainWP_ChildReportsConnector$connector";
+ $class = "MainWP_Child_Reports_Connector_$connector";
+ if ( ! class_exists( $class ) ) {
+ continue;
+ }
$classes[] = $class;
}
diff --git a/class/class-mainwp-keyword-links.php b/class/class-mainwp-keyword-links.php
index 25a81ef..4c45b39 100644
--- a/class/class-mainwp-keyword-links.php
+++ b/class/class-mainwp-keyword-links.php
@@ -98,10 +98,10 @@ class MainWP_Keyword_Links {
} else if ( $force_update ) {
return $this->do_update_htaccess();
} else {
- if ( '' === get_option( 'permalink_structure' ) && 'yes' !== get_option( 'mainwp_keyword_links_htaccess_set' ) ) {
+ if ( '' == get_option( 'permalink_structure' ) && 'yes' !== get_option( 'mainwp_keyword_links_htaccess_set' ) ) {
$this->do_update_htaccess();
} // need to update
- else if ( '' !== get_option( 'permalink_structure' ) && 'yes' === get_option( 'mainwp_keyword_links_htaccess_set' ) ) {
+ else if ( '' != get_option( 'permalink_structure' ) && 'yes' === get_option( 'mainwp_keyword_links_htaccess_set' ) ) {
$this->do_update_htaccess();
} // need to update
}