Skip to content

Commit 48e675e

Browse files
release: v2.6.15
- Codebase changes.
2 parents 945117c + fb604df commit 48e675e

File tree

5 files changed

+21
-71
lines changed

5 files changed

+21
-71
lines changed

assets/js/scripts-admin.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,6 @@ jQuery( function( $ ) {
579579
*/
580580
function handlePlugins() {
581581
const optimoleCheckbox = $( '#wizard-optimole-checkbox' );
582-
const hyveCheckbox = $( '#wizard-hyve-checkbox' );
583-
584582
let promiseChain = Promise.resolve();
585583

586584
if ( optimoleCheckbox.length && optimoleCheckbox.is( ':checked' ) ) {
@@ -596,19 +594,6 @@ jQuery( function( $ ) {
596594
});
597595
}
598596

599-
if ( hyveCheckbox.length && hyveCheckbox.is( ':checked' ) ) {
600-
promiseChain = promiseChain
601-
.then(() => {
602-
if ( ! wpmmVars.isHyveInstalled ) {
603-
return installPlugin( 'hyve-lite' ).then( () => activatePlugin( 'hyve-lite' ) );
604-
}
605-
606-
if ( ! wpmmVars.isHyveActive ) {
607-
return activatePlugin( 'hyve-lite' );
608-
}
609-
});
610-
}
611-
612597
return promiseChain.catch( ( error ) => {
613598
console.error( 'Error in plugin installation or activation:', error );
614599
});
@@ -676,8 +661,6 @@ jQuery( function( $ ) {
676661
return $.get( wpmmVars.otterActivationLink );
677662
case 'optimole-wp':
678663
return $.get( wpmmVars.optimoleActivationLink );
679-
case 'hyve-lite':
680-
return $.get( wpmmVars.hyveActivationLink );
681664
default:
682665
break;
683666
}

composer.lock

Lines changed: 18 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/classes/wp-maintenance-mode-admin.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ public function enqueue_admin_scripts() {
157157
'isOtterActive' => is_plugin_active( 'otter-blocks/otter-blocks.php' ),
158158
'isOptimoleInstalled' => file_exists( ABSPATH . 'wp-content/plugins/optimole-wp/optimole-wp.php' ),
159159
'isOptimoleActive' => is_plugin_active( 'optimole-wp/optimole-wp.php' ),
160-
'isHyveInstalled' => file_exists( ABSPATH . 'wp-content/plugins/hyve-lite/hyve-lite.php' ),
161-
'isHyveActive' => is_plugin_active( 'hyve-lite/hyve-lite.php' ),
162160
'errorString' => __( 'Something went wrong, please try again.', 'wp-maintenance-mode' ),
163161
'loadingString' => __( 'Doing some magic...', 'wp-maintenance-mode' ),
164162
'importingText' => __( 'Importing', 'wp-maintenance-mode' ),
@@ -189,16 +187,6 @@ public function enqueue_admin_scripts() {
189187
),
190188
esc_url( network_admin_url( 'plugins.php' ) )
191189
),
192-
'hyveActivationLink' => add_query_arg(
193-
array(
194-
'action' => 'activate',
195-
'plugin' => rawurlencode( 'hyve-lite/hyve-lite.php' ),
196-
'plugin_status' => 'all',
197-
'paged' => '1',
198-
'_wpnonce' => wp_create_nonce( 'activate-plugin_hyve-lite/hyve-lite.php' ),
199-
),
200-
esc_url( network_admin_url( 'plugins.php' ) )
201-
),
202190
'modalTexts' => array(
203191
'title' => __( 'The template has been imported!', 'wp-maintenance-mode' ),
204192
'description' => __( 'The template has been imported to a new draft page. You can take a look and enable it from plugin settings.', 'wp-maintenance-mode' ),

views/wizard.php

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
),
1515
);
1616

17-
$show_hyve_promo = version_compare( PHP_VERSION, '8.1', '>=' ) && ! is_plugin_active( 'hyve-lite/hyve-lite.php' ) && ! defined( 'HYVE_LITE_VERSION' );
18-
1917
?>
2018
<div id="wpmm-wizard-wrapper">
2119
<div class="slider-wrap">
@@ -88,31 +86,6 @@
8886
</div>
8987
<?php } ?>
9088

91-
<?php if ( $show_hyve_promo ) { ?>
92-
<div class="optimole-upsell">
93-
<div class="optimole-upsell-container">
94-
<span class="components-checkbox-control__input-container">
95-
<input id="wizard-hyve-checkbox" type="checkbox" class="components-checkbox-control__input" checked>
96-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" role="presentation" class="components-checkbox-control__checked" aria-hidden="true" focusable="false"><path d="M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"></path></svg>
97-
</span>
98-
<label for="wizard-hyve-checkbox">
99-
<?php esc_html_e( 'Interactive Chatbot', 'wp-maintenance-mode' ); ?>
100-
</label>
101-
</div>
102-
<p class="description">
103-
<?php
104-
printf(
105-
wp_kses(
106-
/* translators: Hyve Lite url */
107-
__( '<a href="%1$s" target="_blank">Hyve%2$s</a> is an AI chatbot plugin for WordPress, ideal for sites in maintenance mode. It enhances user experience by turning your content into interactive conversations, helping visitors access information while your site is under development.', 'wp-maintenance-mode' ),
108-
wpmm_translated_string_allowed_html()
109-
),
110-
esc_url( 'https://wordpress.org/plugins/hyve-lite/' ),
111-
$this->get_external_link_icon()
112-
);
113-
?>
114-
</div>
115-
<?php } ?>
11689
<div id="wizard-buttons" class="import-button">
11790
<input type="button" class="button button-big button-primary disabled button-import" value="<?php esc_html_e( 'Continue', 'wp-maintenance-mode' ); ?>"/>
11891
<input type="button" class="button button-big button-secondary button-skip" value="<?php esc_html_e( 'I don’t want to use a template', 'wp-maintenance-mode' ); ?>"/>

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2698,9 +2698,9 @@ cosmiconfig@^7.0.0:
26982698
yaml "^1.10.0"
26992699

27002700
cross-spawn@^7.0.0, cross-spawn@^7.0.3:
2701-
version "7.0.3"
2702-
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
2703-
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
2701+
version "7.0.6"
2702+
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f"
2703+
integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==
27042704
dependencies:
27052705
path-key "^3.1.0"
27062706
shebang-command "^2.0.0"

0 commit comments

Comments
 (0)