Plugin Directory

Changeset 3777006


Ignore:
Timestamp:
10/31/2026 02:51:14 PM (6 hours ago)
Author:
RedWoodCIty
Message:

Readme 1.11.0: FAQ now states that only posts (non-hierarchical post types) get the 301 old-slug redirect, pages are not redirected; links to the usage, documentation, FAQ and changelog pages on the product site. No code changes.

Location:
default-permalink
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • default-permalink/tags/1.11.0/readme.txt

    r3776733 r3777006  
    25251. Check "Enable" and save changes.
    2626
     27Slug formats, target post types, the bulk conversion and more are explained in the usage guide: https://www.redwoodcity.jp/app/default-permalink/en/usage-en/
     28
    2729= WP-CLI =
    2830
    2931* `wp default-permalink status` shows the settings and the number of posts with a multi-byte slug.
    3032* `wp default-permalink convert --dry-run` lists the posts to convert and their new slugs; `wp default-permalink convert` converts them all (no 50-post limit).
    31 * `--post_type=page` (comma-separated) converts only those post types, and `--limit=500` stops after that many posts so a large site can be converted in steps; the command prints an `--after=<ID>` value to continue from.
     33* `--post_type`, `--limit` and `--after` convert a large site in steps. See the documentation: https://www.redwoodcity.jp/app/default-permalink/en/docs-en/
    3234
    3335= Convert a single post =
    3436
    35 In the post, page and media lists, a post that still has a multi-byte slug shows a "Convert slug" link under its title (when the plugin is enabled and you can edit the post). It converts just that post to the selected format; the old URL is redirected to the new one.
     37In the post, page and media lists, a post that still has a multi-byte slug shows a "Convert slug" link under its title (when the plugin is enabled and you can edit the post). It converts just that post to the selected format; for posts, the old URL is redirected to the new one (pages are not redirected, see the FAQ).
    3638
    3739= Site Health =
    … …  
    4648
    4749== Frequently Asked Questions ==
     50
     51More questions and answers: https://www.redwoodcity.jp/app/default-permalink/en/faq-en/
    4852
    4953= Can I still use a Japanese (multi-byte) slug? =
    … …  
    6165= How do I customize the slug format? =
    6266
    63 Use the `default_permalink_slug` filter for posts and `default_permalink_term_slug` for terms:
     67Use the `default_permalink_slug` filter for posts and `default_permalink_term_slug` for terms. The result is made unique automatically. Examples and parameters: https://www.redwoodcity.jp/app/default-permalink/en/docs-en/
    6468
    65 `add_filter( 'default_permalink_slug', function ( $slug, $post_id, $post_type ) { return 'article-' . $post_id; }, 10, 3 );`
     69= What happens to old URLs after a slug is converted? =
    6670
    67 The result is made unique automatically (a suffix such as `-2` is added if needed).
    68 
    69 = What happens to old URLs after the bulk conversion? =
    70 
    71 WordPress stores the old slug and redirects the old URL to the new permalink (301).
     71For posts and other non-hierarchical post types, WordPress stores the old slug and redirects the old URL to the new permalink (301). Pages and other hierarchical post types are not redirected, because WordPress does not keep their old slugs: the old URL returns 404. If such a page is linked from elsewhere, set up a redirect yourself (for example with a redirection plugin).
    7272
    7373== Changelog ==
    … …  
    152152* Initial release.
    153153
     154The changelog of every version, with downloads: https://www.redwoodcity.jp/app/default-permalink/en/changelog-en/
     155
    154156== Upgrade Notice ==
    155157
  • default-permalink/trunk/readme.txt

    r3776733 r3777006  
    25251. Check "Enable" and save changes.
    2626
     27Slug formats, target post types, the bulk conversion and more are explained in the usage guide: https://www.redwoodcity.jp/app/default-permalink/en/usage-en/
     28
    2729= WP-CLI =
    2830
    2931* `wp default-permalink status` shows the settings and the number of posts with a multi-byte slug.
    3032* `wp default-permalink convert --dry-run` lists the posts to convert and their new slugs; `wp default-permalink convert` converts them all (no 50-post limit).
    31 * `--post_type=page` (comma-separated) converts only those post types, and `--limit=500` stops after that many posts so a large site can be converted in steps; the command prints an `--after=<ID>` value to continue from.
     33* `--post_type`, `--limit` and `--after` convert a large site in steps. See the documentation: https://www.redwoodcity.jp/app/default-permalink/en/docs-en/
    3234
    3335= Convert a single post =
    3436
    35 In the post, page and media lists, a post that still has a multi-byte slug shows a "Convert slug" link under its title (when the plugin is enabled and you can edit the post). It converts just that post to the selected format; the old URL is redirected to the new one.
     37In the post, page and media lists, a post that still has a multi-byte slug shows a "Convert slug" link under its title (when the plugin is enabled and you can edit the post). It converts just that post to the selected format; for posts, the old URL is redirected to the new one (pages are not redirected, see the FAQ).
    3638
    3739= Site Health =
    … …  
    4648
    4749== Frequently Asked Questions ==
     50
     51More questions and answers: https://www.redwoodcity.jp/app/default-permalink/en/faq-en/
    4852
    4953= Can I still use a Japanese (multi-byte) slug? =
    … …  
    6165= How do I customize the slug format? =
    6266
    63 Use the `default_permalink_slug` filter for posts and `default_permalink_term_slug` for terms:
     67Use the `default_permalink_slug` filter for posts and `default_permalink_term_slug` for terms. The result is made unique automatically. Examples and parameters: https://www.redwoodcity.jp/app/default-permalink/en/docs-en/
    6468
    65 `add_filter( 'default_permalink_slug', function ( $slug, $post_id, $post_type ) { return 'article-' . $post_id; }, 10, 3 );`
     69= What happens to old URLs after a slug is converted? =
    6670
    67 The result is made unique automatically (a suffix such as `-2` is added if needed).
    68 
    69 = What happens to old URLs after the bulk conversion? =
    70 
    71 WordPress stores the old slug and redirects the old URL to the new permalink (301).
     71For posts and other non-hierarchical post types, WordPress stores the old slug and redirects the old URL to the new permalink (301). Pages and other hierarchical post types are not redirected, because WordPress does not keep their old slugs: the old URL returns 404. If such a page is linked from elsewhere, set up a redirect yourself (for example with a redirection plugin).
    7272
    7373== Changelog ==
    … …  
    152152* Initial release.
    153153
     154The changelog of every version, with downloads: https://www.redwoodcity.jp/app/default-permalink/en/changelog-en/
     155
    154156== Upgrade Notice ==
    155157
Note: See TracChangeset for help on using the changeset viewer.