Prefix font-family -face post slugs with wp-font...
to avoid reserving nice names.
#59137
Labels
wp-font...
to avoid reserving nice names.
#59137
Description
As plugins can modify the rewrites for custom post types & customize the rules for what constitutes a duplicate slug via the
wp_unique_post_slug
filter, it would be good to prefix font family and font face post slugs withwp-font-fam-
andwp-font-face-
respectively.This is usually used in conjunction with custom rewrite rules for custom post types.
To be certain that WordPress will not reserve "nice names" in these circumstances, it would be good to prefix the font face and family post slugs with
wp-font-...
prefixes.Step-by-step reproduction instructions
open-sans-2
.Screenshots, screen recording, code snippet
Test plugin.
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: