Files
WordPress/wp-includes
Boone Gorges 9f0c6cbf8c Disallow post slugs that will result in permalinks that conflict with date archive URLs.
On certain permalink structures, a numeric post slug will result in a post
permalink that conflicts with a date archive URL. For example, with permastruct
`/%year%/%monthnum%/%postname%/`, a post published in May 2015 with slug
`'15'` will result in a URL (`/2015/05/15/`) that conflicts with the archive
for May 15, 2015.

To avoid this problem, `wp_unique_post_slug()` rejects a requested slug when it
would generate a conflict of this type. Thus, in our example, `'15'` would
become `'15-2'`.

Props valendesigns, boonebgorges, Denis-de-Bernardy, loushou.
See #5305.
Built from https://develop.svn.wordpress.org/trunk@32647


git-svn-id: http://core.svn.wordpress.org/trunk@32617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-29 12:53:24 +00:00
..
2015-05-15 20:44:25 +00:00
2014-09-11 19:07:17 +00:00
2015-05-09 18:27:26 +00:00
2015-05-25 17:32:27 +00:00
2015-05-26 18:13:25 +00:00
2015-05-26 18:53:27 +00:00
2015-05-26 19:23:25 +00:00
2015-05-26 19:33:25 +00:00
2015-05-26 21:51:31 +00:00
2015-05-26 22:17:25 +00:00
2015-05-27 18:15:25 +00:00
2013-10-30 14:39:10 +00:00
2015-05-28 15:51:25 +00:00