Changeset 2972601
- Timestamp:
- 09/28/2023 10:16:25 AM (2 years ago)
- Location:
- longer-permalinks/trunk
- Files:
-
- 2 edited
-
longer-permalinks.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
longer-permalinks/trunk/longer-permalinks.php
r2882550 r2972601 12 12 Author: Giannis Economou 13 13 14 Version: 1.2 814 Version: 1.29 15 15 16 16 Author URI: http://www.antithesis.gr … … 20 20 defined( 'ABSPATH' ) OR exit; 21 21 22 define('LONGER_PERMALINKS_PLUGIN_VERSION', "12 8");22 define('LONGER_PERMALINKS_PLUGIN_VERSION', "129"); 23 23 define('REDEF_FILE', WP_PLUGIN_DIR."/longer-permalinks/sanitize_override.inc"); 24 24 … … 35 35 36 36 // First install or updating plugin from 1.14- or updating version 1.20 37 if ( empty($last_plugin_ver) || ($last_plugin_ver == '') || $last_plugin_ver == '120' ) {37 if ( empty($last_plugin_ver) || ($last_plugin_ver == '') || $last_plugin_ver < '129' ) { 38 38 // Mark the need to backup all post_names so far 39 39 update_option( 'longer-permalinks-backup-needed', 1 ); … … 105 105 return; 106 106 } 107 // Get the post object before the update 108 $post_before = get_post($post_ID); 109 110 // Update post name if changed. 111 if ($post_before->post_name === $post_after->post_name) { 112 return; 113 } 107 114 108 update_post_meta($post_ID, 'longer-permalinks-post-name-longer', $post_after->post_name); 115 109 } -
longer-permalinks/trunk/readme.txt
r2882550 r2972601 4 4 Tags: permalinks, long, slugs, slugs length, long title, post_name size, titles, non-latin, url, permalinks limitation, long url, long slug 5 5 Requires at least: 4.0 6 Tested up to: 6. 17 Stable tag: 1.2 86 Tested up to: 6.3.1 7 Stable tag: 1.29 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 33 33 34 34 == Changelog == 35 36 = 1.29 = 37 * Bug fix: Long slugs backup on specific cases preventing some proper slug restores on core update. Credits: @sotosx 35 38 36 39 = 1.28 =
Note: See TracChangeset
for help on using the changeset viewer.