diff --git a/CHANGELOG.txt b/CHANGELOG.txt index ea6e2fc6..d912f456 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,4 +1,7 @@ == Changelog == += 7.0.2 - Jun 17, 2025 = +- Fixed an issue where a "2" was incorrectly appended to page slugs when the "URLs without ID" feature was enabled. + = 7.0.1 - Apr 8, 2025 = - **WordPress 6.8 compatibility.** The new WordPress version will be released soon. The Ecwid ecommerce shopping cart plugin is ready for the new release — everything works well in your WordPress admin and storefront pages. Feel free to upgrade your site to WordPress 6.8. - **Improved security when handling Gutenberg block params. Ecwid ecommerce shopping cart plugin update recommended.** diff --git a/ecwid-shopping-cart.php b/ecwid-shopping-cart.php index dc7de54a..11665acd 100644 --- a/ecwid-shopping-cart.php +++ b/ecwid-shopping-cart.php @@ -5,7 +5,7 @@ Description: Ecwid by Lightspeed is a full-featured shopping cart. It can be easily integrated with any Wordpress blog and takes less than 5 minutes to set up. Text Domain: ecwid-shopping-cart Author: Ecwid Ecommerce -Version: 7.0.1 +Version: 7.0.2 Author URI: https://ecwid.to/ecwid-site License: GPLv2 or later */ diff --git a/includes/class-ecwid-seo-links.php b/includes/class-ecwid-seo-links.php index 25626021..bbd8d838 100644 --- a/includes/class-ecwid-seo-links.php +++ b/includes/class-ecwid-seo-links.php @@ -216,6 +216,17 @@ public function slug_matches_seo_pattern( $slug ) { if ( ! $pattern ) { $patterns = self::get_seo_links_patterns(); + // The '.*' pattern is deleted because it will always be triggered. + $index = array_search( '.*', $patterns, true ); + if ( $index !== false ) { + unset( $patterns[$index] ); + $patterns = array_values( $patterns ); + } + + if ( empty( $patterns ) ) { + return false; + } + $pattern = '!(^' . implode( '$|^', $patterns ) . '$)!'; } diff --git a/readme.txt b/readme.txt index c807fdbd..3b852aaf 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Requires at least: 4.4 Tested up to: 6.8 -Stable tag: 7.0.1 +Stable tag: 7.0.2 Powerful, easy to use ecommerce shopping cart for WordPress. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. @@ -153,6 +153,9 @@ You can use Ecwid’s built-in import tools to copy your store products from any * [Ecwid Help Center](http://help.ecwid.com "Ecwid Help") == Changelog == += 7.0.2 - Jun 17, 2025 = +- Fixed an issue where a "2" was incorrectly appended to page slugs when the "URLs without ID" feature was enabled. + = 7.0.1 - Apr 8, 2025 = - **WordPress 6.8 compatibility.** The new WordPress version will be released soon. The Ecwid ecommerce shopping cart plugin is ready for the new release — everything works well in your WordPress admin and storefront pages. Feel free to upgrade your site to WordPress 6.8. - **Improved security when handling Gutenberg block params. Ecwid ecommerce shopping cart plugin update recommended.**