WordPress prevents pages with numeric slugs
|Reported by:||vividvisions||Owned by:|
Numeric slugs are prevented by a preg_match against the slug in Line 2,555 of wp-includes/post.php:
preg_match( '@^(page)?\d+$@', $slug )
If the slug is numeric only, a suffix is added.
Instead of just preventing numeric-only slugs, the function should check, if the permalink of the page is at odds with the configured permalink structure and only add the suffix if this is the case.
Change History (19)
comment:18 @Viper007Bond — 4 years ago
- Resolution set to duplicate
- Status changed from new to closed