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.