Plugin Directory

Changeset 2972601


Ignore:
Timestamp:
09/28/2023 10:16:25 AM (2 years ago)
Author:
antithesisgr
Message:

Preparing for 1.29 release

Location:
longer-permalinks/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • longer-permalinks/trunk/longer-permalinks.php

    r2882550 r2972601  
    1212Author: Giannis Economou
    1313
    14 Version: 1.28
     14Version: 1.29
    1515
    1616Author URI: http://www.antithesis.gr
     
    2020defined( 'ABSPATH' ) OR exit;
    2121
    22 define('LONGER_PERMALINKS_PLUGIN_VERSION', "128");
     22define('LONGER_PERMALINKS_PLUGIN_VERSION', "129");
    2323define('REDEF_FILE', WP_PLUGIN_DIR."/longer-permalinks/sanitize_override.inc");
    2424
     
    3535
    3636// 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' ) {
     37if ( empty($last_plugin_ver) || ($last_plugin_ver == '') || $last_plugin_ver < '129' ) {
    3838        // Mark the need to backup all post_names so far
    3939        update_option( 'longer-permalinks-backup-needed', 1 );
     
    105105            return;
    106106    }
    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   
    114108    update_post_meta($post_ID, 'longer-permalinks-post-name-longer', $post_after->post_name);
    115109}
  • longer-permalinks/trunk/readme.txt

    r2882550 r2972601  
    44Tags: permalinks, long, slugs, slugs length, long title, post_name size, titles, non-latin, url, permalinks limitation, long url, long slug
    55Requires at least: 4.0
    6 Tested up to: 6.1
    7 Stable tag: 1.28
     6Tested up to: 6.3.1
     7Stable tag: 1.29
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3333
    3434== Changelog ==
     35
     36= 1.29 =
     37* Bug fix: Long slugs backup on specific cases preventing some proper slug restores on core update. Credits: @sotosx
    3538
    3639= 1.28 =
Note: See TracChangeset for help on using the changeset viewer.