diff --git a/admin/class-strong-testimonials-admin-scripts.php b/admin/class-strong-testimonials-admin-scripts.php
index 3bb4252b..d63b2334 100644
--- a/admin/class-strong-testimonials-admin-scripts.php
+++ b/admin/class-strong-testimonials-admin-scripts.php
@@ -54,14 +54,6 @@ public static function admin_register() {
true
);
- wp_register_script(
- 'wpmtst-admin-script',
- WPMTST_ASSETS_JS . 'admin.js',
- array( 'jquery', 'underscore' ),
- $plugin_version,
- true
- );
-
wp_register_style(
'wpmtst-admin-global-style',
WPMTST_ASSETS_CSS . 'admin-global.css',
diff --git a/admin/class-strong-testimonials-lite-vs-pro-page.php b/admin/class-strong-testimonials-lite-vs-pro-page.php
index 314d4caf..e1588458 100644
--- a/admin/class-strong-testimonials-lite-vs-pro-page.php
+++ b/admin/class-strong-testimonials-lite-vs-pro-page.php
@@ -7,6 +7,8 @@ class Strong_Testimonials_Lite_Vs_PRO_Page {
public function __construct() {
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
+ add_action( 'admin_print_footer_scripts', array( $this, 'inline_script_for_redirection' ) );
+
add_filter( 'wpmtst_submenu_pages', array( $this, 'add_submenu' ) );
// Upgrade to PRO plugin action link
@@ -56,82 +58,32 @@ public function get_submenu() {
'page_title' => esc_html__( 'Lite vs Pro', 'strong-testimonials' ),
'menu_title' => esc_html__( 'Lite vs Pro', 'strong-testimonials' ),
'capability' => 'strong_testimonials_options',
- 'menu_slug' => 'strong-testimonials-lite-vs-pro',
+ 'menu_slug' => '#st-lite-vs-pro',
'function' => array( $this, 'render_page' ),
);
}
public function render_page() {
+ return;
+ }
- $addons = new Strong_Testimonials_Addons();
+ public function inline_script_for_redirection() {
?>
-
-
-
-
-
-
-
-
- get_addons() as $pro ) {
- ?>
-
-
+ document.addEventListener('DOMContentLoaded', function() {
+ const link = document.querySelector('a[href*="edit.php?post_type=wpm-testimonial&page=#st-lite-vs-pro"]');
+ if (link) {
+ link.addEventListener('click', function(event) {
+ event.preventDefault();
+
+ window.open(
+ 'https://strongtestimonials.com/free-vs-pro/?utm_source=st-lite&utm_medium=link&utm_campaign=upsell&utm_term=lite-vs-pro',
+ '_blank'
+ );
+ });
}
- ?>
-
-
-
-
-
-
+ });
+
+
+
=8"
}
},
+ "node_modules/cross-env": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
+ "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
+ "dev": true,
+ "dependencies": {
+ "cross-spawn": "^7.0.1"
+ },
+ "bin": {
+ "cross-env": "src/bin/cross-env.js",
+ "cross-env-shell": "src/bin/cross-env-shell.js"
+ },
+ "engines": {
+ "node": ">=10.14",
+ "npm": ">=6",
+ "yarn": ">=1"
+ }
+ },
+ "node_modules/cross-env/node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
+ "dev": true,
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/cross-env/node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cross-env/node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cross-env/node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
"node_modules/cross-fetch": {
"version": "3.1.5",
"resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz",
diff --git a/package.json b/package.json
index 448d0b16..d9c6870c 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "strong-testimonials",
"author": "WPChill",
- "version": "3.2.0",
+ "version": "3.2.1",
"license": "GPL v3",
"scripts": {
"build": "cross-env NODE_ENV=production wp-scripts build --config webpack.config.js",
diff --git a/readme.txt b/readme.txt
index 84ccf557..930f4798 100644
--- a/readme.txt
+++ b/readme.txt
@@ -4,7 +4,7 @@ Tags: testimonials, testimonial slider, testimonial form, star ratings
Requires at least: 5.2
Requires PHP: 5.6
Tested up to: 6.7
-Stable tag: 3.2.0
+Stable tag: 3.2.1
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -199,6 +199,10 @@ No. If you already have testimonials in another plugin or theme, you will have t
8. View editor
== Changelog ==
+ = 3.2.1 - 17.12.2024 -
+- Changed: Disabled seasonal promotions notifications.
+- Fixed: Javascript error in admin.
+
= 3.2.0 - 13.11.2024 -
- Fixed: Modern view tempalte path to quote marks was not correct. ( [#474](https://github.com/WPChill/strong-testimonials/issues/474) )
- Removed: License functionality
diff --git a/strong-testimonials.php b/strong-testimonials.php
index 8ca3dfc2..17a045cf 100644
--- a/strong-testimonials.php
+++ b/strong-testimonials.php
@@ -5,7 +5,7 @@
* Description: Collect and display your testimonials or reviews.
* Author: WPChill
* Author URI: https://wpchill.com/
- * Version: 3.2.0
+ * Version: 3.2.1
* Text Domain: strong-testimonials
* Domain Path: /languages
* Requires: 4.6 or higher
@@ -45,7 +45,7 @@
exit;
}
-define( 'WPMTST_VERSION', '3.2.0' );
+define( 'WPMTST_VERSION', '3.2.1' );
define( 'WPMTST_PLUGIN', plugin_basename( __FILE__ ) ); // strong-testimonials/strong-testimonials.php
define( 'WPMTST', dirname( WPMTST_PLUGIN ) ); // strong-testimonials