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
..
2014-12-07 03:13:22 +00:00
2015-05-15 20:44:25 +00:00
2014-12-09 19:34:23 +00:00
2014-09-11 19:07:17 +00:00
2015-04-10 06:20:26 +00:00
2015-05-25 06:41:25 +00:00
2015-03-19 03:56:27 +00:00
2013-09-11 04:02:10 +00:00
2013-05-25 22:10:53 +00:00
2015-05-12 10:47:29 +00:00
2015-05-22 04:00:26 +00:00
2015-05-09 18:27:26 +00:00
2015-05-25 13:06:25 +00:00
2015-05-24 05:40:25 +00:00
2015-05-21 20:13:25 +00:00
2015-05-22 04:24:26 +00:00
2015-05-24 05:40:25 +00:00
2015-05-24 05:40:25 +00:00
2015-05-24 05:40:25 +00:00
2015-05-24 05:40:25 +00:00
2015-01-16 01:06:24 +00:00
2015-05-22 05:06:25 +00:00
2014-12-30 20:41:23 +00:00
2013-07-08 16:55:34 +00:00
2015-05-21 21:31:27 +00:00
2014-11-20 16:03:24 +00:00
2014-03-03 20:25:14 +00:00
2011-04-21 20:40:32 +00:00
2014-08-13 03:56:17 +00:00
2014-09-29 10:28:17 +00:00
2013-07-08 17:17:46 +00:00
2015-05-24 05:40:25 +00:00
2015-01-11 00:13:23 +00:00
2015-05-24 05:40:25 +00:00
2015-05-24 05:40:25 +00:00
2015-02-25 08:09:25 +00:00
2015-05-21 22:05:24 +00:00
2015-05-24 05:40:25 +00:00
2015-05-25 22:09:25 +00:00
2015-05-22 05:10:24 +00:00
2015-05-22 05:47:25 +00:00
2015-05-24 05:40:25 +00:00
2015-05-22 06:18:25 +00:00
2015-05-23 19:10:28 +00:00
2015-05-23 19:20:24 +00:00
2015-05-22 06:18:25 +00:00
2015-05-24 05:40:25 +00:00
2015-05-22 17:59:25 +00:00
2015-05-25 17:59:25 +00:00
2015-05-22 20:05:25 +00:00
2015-05-10 19:57:25 +00:00
2015-05-24 05:40:25 +00:00
2015-05-24 05:05:26 +00:00
2015-05-24 05:40:25 +00:00
2015-05-25 06:25:25 +00:00
2015-05-06 03:00:25 +00:00
2015-05-25 06:25:25 +00:00
2015-04-12 21:29:32 +00:00
2015-01-06 01:57:22 +00:00
2015-05-28 05:52:25 +00:00
2015-05-25 17:59:25 +00:00
2015-04-12 21:29:32 +00:00
2014-07-07 10:18:15 +00:00
2014-07-07 10:18:15 +00:00
2014-12-06 21:32:24 +00:00
2015-05-09 06:39:24 +00:00
2015-05-09 06:39:24 +00:00
2015-05-09 06:39:24 +00:00
2015-05-09 06:49:24 +00:00
2015-05-25 06:25:25 +00:00
2015-05-25 16:11:25 +00:00
2015-05-25 16:24:25 +00:00
2015-05-25 16:35:24 +00:00
2015-05-25 17:18:26 +00:00
2015-05-25 17:32:27 +00:00
2015-05-26 18:06:24 +00:00
2015-05-26 18:13:25 +00:00
2015-05-26 18:44:25 +00:00
2015-05-26 18:53:27 +00:00
2015-05-26 18:59:25 +00:00
2015-05-26 19:23:25 +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 21:51:31 +00:00
2015-05-26 21:51:31 +00:00
2015-01-16 18:37:24 +00:00
2013-05-20 20:20:22 +00:00
2015-05-26 21:51:31 +00:00
2015-05-26 21:51:31 +00:00
2014-06-30 23:50:15 +00:00
2015-05-26 22:10:25 +00:00
2015-05-26 22:10:25 +00:00
2015-05-26 22:17:25 +00:00
2014-11-30 22:19:25 +00:00
2015-05-27 15:32:26 +00:00
2015-05-27 15:56:26 +00:00
2015-05-27 16:06:25 +00:00
2015-05-27 16:26:25 +00:00
2015-05-27 16:29:28 +00:00
2015-05-29 12:53:24 +00:00
2015-05-27 18:15:25 +00:00
2012-01-08 17:01:11 +00:00
2012-01-08 17:01:11 +00:00
2015-05-27 18:38:24 +00:00
2015-05-27 19:23:26 +00:00
2013-09-25 00:18:11 +00:00
2014-11-03 06:08:22 +00:00
2015-05-27 19:34:27 +00:00
2015-01-16 22:51:21 +00:00
2015-05-27 19:39:25 +00:00
2015-05-27 22:00:25 +00:00
2013-10-30 14:39:10 +00:00
2015-05-27 22:04:26 +00:00
2015-05-28 05:51:25 +00:00
2015-05-28 15:29:28 +00:00
2015-05-28 15:51:25 +00:00
2015-04-12 21:29:32 +00:00
2015-05-29 12:53:24 +00:00
2015-05-28 16:20:25 +00:00
2013-12-11 19:49:11 +00:00
2015-05-28 20:10:29 +00:00
2015-01-29 11:36:22 +00:00