From 6add216c22bc89148f4d013fff62e54d7b221937 Mon Sep 17 00:00:00 2001 From: Sami Ahmed Siddiqui Date: Fri, 26 Nov 2021 13:10:41 +0500 Subject: [PATCH] Bump to v2.4.0 --- ....0.min.css => about-plugins-2.4.0.min.css} | 0 ...-2.3.0.min.js => script-form-2.4.0.min.js} | 0 changelog.txt | 39 ++++++++++++ custom-permalinks.php | 2 +- includes/class-custom-permalinks.php | 2 +- package.json | 2 +- readme.txt | 62 +++++++------------ 7 files changed, 64 insertions(+), 43 deletions(-) rename assets/css/{about-plugins-2.3.0.min.css => about-plugins-2.4.0.min.css} (100%) rename assets/js/{script-form-2.3.0.min.js => script-form-2.4.0.min.js} (100%) diff --git a/assets/css/about-plugins-2.3.0.min.css b/assets/css/about-plugins-2.4.0.min.css similarity index 100% rename from assets/css/about-plugins-2.3.0.min.css rename to assets/css/about-plugins-2.4.0.min.css diff --git a/assets/js/script-form-2.3.0.min.js b/assets/js/script-form-2.4.0.min.js similarity index 100% rename from assets/js/script-form-2.3.0.min.js rename to assets/js/script-form-2.4.0.min.js diff --git a/changelog.txt b/changelog.txt index f286664..66ace45 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,45 @@ This file contains only old changelog. See readme.txt for newer versions. += 2.2.0 - Aug 13, 2021 = + +* Bugs + * Show decoded permalink in meta box +* Enhancements + * Update script to fix linting issues and use updated permalink to view the post/page + += 2.1.0 - Aug 09, 2021 = + +* Bugs + * [Plugin not save persian alphabet](https://wordpress.org/support/topic/plugin-not-save-persian-alphabet/) + * Fix PHP Error on Deactivating the plugin +* Enhancements + * Exclude processing for sitemap URLs + += 2.0.1 - Aug 02, 2021 = + +* Bugs + * [404 error when post/page custom permalink is part of category custom permalink](https://github.com/samiahmedsiddiqui/custom-permalinks/issues/49) + += 2.0.0 - Jul 30, 2021 = + +* Bugs + * [Bug with AMP plugin](https://wordpress.org/support/topic/bug-with-amp-plugin/) + * [Oembed links not working](https://wordpress.org/support/topic/oembed-links-not-working/) + * [Uncaught (in promise) TypeError: getHomeURL is null](https://wordpress.org/support/topic/uncaught-in-promise-typeerror-gethomeurl-is-null/) + * [Plugin stop saving uppercase slugs](https://wordpress.org/support/topic/plugin-stop-saving-upppercase-slugs/) + * [template_redirect](https://wordpress.org/support/topic/make-redirect/) + * conflict with WooCommerce Paid courses + * Fix creating duplicated permalink while creating multiple `Categories` and/or `Tags` +* Enhancements + * Added Query caching to improve performance + * Changed Permalink sanitization method (Similar way as WP does) + * Added Nonce verification to make forms secure + * [Permalink Filter before saving](https://wordpress.org/support/topic/permalink-filter/) + * Show/Hide column and Pagination features added on Post Type Permalinks and Taxonomies Permalinks page + * Removed deprecated functions + * Applied WPCS Standards + = 1.7.1 - Aug 30, 2020 = * Bugs diff --git a/custom-permalinks.php b/custom-permalinks.php index 1a67263..c33e675 100644 --- a/custom-permalinks.php +++ b/custom-permalinks.php @@ -3,7 +3,7 @@ * Plugin Name: Custom Permalinks * Plugin URI: https://www.custompermalinks.com/ * Description: Set custom permalinks on a per-post basis. - * Version: 2.3.0 + * Version: 2.4.0 * Requires at least: 2.6 * Requires PHP: 5.4 * Author: Sami Ahmed Siddiqui diff --git a/includes/class-custom-permalinks.php b/includes/class-custom-permalinks.php index 3bcb7aa..2a87c8d 100644 --- a/includes/class-custom-permalinks.php +++ b/includes/class-custom-permalinks.php @@ -18,7 +18,7 @@ class Custom_Permalinks { * * @var string */ - public $version = '2.3.0'; + public $version = '2.4.0'; /** * Class constructor. diff --git a/package.json b/package.json index ce4e640..c04b444 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,6 @@ "gulp-uglify": "3.0.2" }, "customPermalinks": { - "pluginVersion": "2.3.0" + "pluginVersion": "2.4.0" } } diff --git a/readme.txt b/readme.txt index 5530bec..98c7ef8 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: sasiddiqui Tags: permalink, url, link, address, custom, redirect, custom post type, GDPR, GDPR Compliant Tested up to: 5.8 -Stable tag: 2.3.0 +Stable tag: 2.4.0 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -137,6 +137,17 @@ function yasglobal_allow_uppercaps() { add_filter( 'custom_permalinks_allow_caps', 'yasglobal_allow_uppercaps' ); ` +=== Allow Redundant Hyphens === + +To allow redundant hyphens, please add below-mentioned line in your theme `functions.php`: + +` +function yasglobal_redundant_hyphens() { + return true; +} +add_filter( 'custom_permalinks_redundant_hyphens', 'yasglobal_redundant_hyphens' ); +` + === Manipulate Permalink Before Saving === To make changes in permalink before saving, please use `custom_permalink_before_saving` filter. Here is an example to see how it works. @@ -188,6 +199,16 @@ This process defines you the steps to follow either you are installing through W == Changelog == += 2.4.0 - Nov 26, 2021 = + +* Bugs + * [filter for leading special characters](https://wordpress.org/support/topic/filter-for-leading-special-characters/) + * [“search Permalinks” button doesn’t work. (part2)](https://wordpress.org/support/topic/search-permalinks-button-doesnt-work-part2/) + * [PHP 8 errors on first visit of Taxonomy Permalinks tab](https://github.com/samiahmedsiddiqui/custom-permalinks/issues/59) + * [Notice: Undefined variable: site_url in custom-permalinks/admin/class-custom-permalinks-post-types-table.php on line 306](https://github.com/samiahmedsiddiqui/custom-permalinks/issues/56) +* Enhancements + * [Pending Post Preview Link](https://wordpress.org/support/topic/pending-post-preview-link/) + = 2.3.0 - Sep 21, 2021 = * Bugs @@ -198,45 +219,6 @@ This process defines you the steps to follow either you are installing through W * Enhancements * Allow period in the permalink -= 2.2.0 - Aug 13, 2021 = - -* Bugs - * Show decoded permalink in meta box -* Enhancements - * Update script to fix linting issues and use updated permalink to view the post/page - -= 2.1.0 - Aug 09, 2021 = - -* Bugs - * [Plugin not save persian alphabet](https://wordpress.org/support/topic/plugin-not-save-persian-alphabet/) - * Fix PHP Error on Deactivating the plugin -* Enhancements - * Exclude processing for sitemap URLs - -= 2.0.1 - Aug 02, 2021 = - -* Bugs - * [404 error when post/page custom permalink is part of category custom permalink](https://github.com/samiahmedsiddiqui/custom-permalinks/issues/49) - -= 2.0.0 - Jul 30, 2021 = - -* Bugs - * [Bug with AMP plugin](https://wordpress.org/support/topic/bug-with-amp-plugin/) - * [Oembed links not working](https://wordpress.org/support/topic/oembed-links-not-working/) - * [Uncaught (in promise) TypeError: getHomeURL is null](https://wordpress.org/support/topic/uncaught-in-promise-typeerror-gethomeurl-is-null/) - * [Plugin stop saving uppercase slugs](https://wordpress.org/support/topic/plugin-stop-saving-upppercase-slugs/) - * [template_redirect](https://wordpress.org/support/topic/make-redirect/) - * conflict with WooCommerce Paid courses - * Fix creating duplicated permalink while creating multiple `Categories` and/or `Tags` -* Enhancements - * Added Query caching to improve performance - * Changed Permalink sanitization method (Similar way as WP does) - * Added Nonce verification to make forms secure - * [Permalink Filter before saving](https://wordpress.org/support/topic/permalink-filter/) - * Show/Hide column and Pagination features added on Post Type Permalinks and Taxonomies Permalinks page - * Removed deprecated functions - * Applied WPCS Standards - = Earlier versions = * For the changelog of earlier versions, please refer to the separate changelog.txt file.