mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-01 03:58:07 +08:00
merge with branch01 + update version
This commit is contained in:
parent
fc6426aacb
commit
67dbdb0420
3 changed files with 11 additions and 8 deletions
|
@ -559,13 +559,13 @@ class MainWP_Child {
|
|||
class="howto"><?php esc_html_e( 'The Unique Security ID adds additional protection between the Child plugin and your Main Dashboard. The Unique Security ID will need to match when being added to the Main Dashboard. This is additional security and should not be needed in most situations.', 'mainwp-child' ); ?></div>
|
||||
<div style="margin: 1em 0 4em 0;">
|
||||
<input name="requireUniqueSecurityId" type="checkbox"
|
||||
id="requireUniqueSecurityId" <?php if ( '' !== get_option( 'mainwp_child_uniqueId' ) ) {
|
||||
id="requireUniqueSecurityId" <?php if ( '' != get_option( 'mainwp_child_uniqueId' ) ) {
|
||||
echo 'checked';
|
||||
} ?> /> <label for="requireUniqueSecurityId"
|
||||
style="font-size: 15px;"><?php esc_html_e( 'Require Unique Security ID', 'mainwp-child' ); ?></label>
|
||||
</div>
|
||||
<div>
|
||||
<?php if ( '' !== get_option( 'mainwp_child_uniqueId' ) ) {
|
||||
<?php if ( '' != get_option( 'mainwp_child_uniqueId' ) ) {
|
||||
echo '<span style="border: 1px dashed #e5e5e5; background: #fafafa; font-size: 24px; padding: 1em 2em;">' . esc_html__( 'Your Unique Security ID is:', 'mainwp-child' ) . ' <span style="font-weight: bold; color: #7fb100;">' . esc_html( get_option( 'mainwp_child_uniqueId' ) ) . '</span></span>';
|
||||
} ?>
|
||||
</div>
|
||||
|
@ -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'] ) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue