Wordpress/tests/phpunit/tests/admin
Boone Gorges 683ae35c33 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@32647 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-29 12:52:17 +00:00
..
includesFile.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
includesListTable.php Introduce a new algorithm for displaying a hierarchical list of post objects in the WP_Posts_List_Table. This reduces processing time, reduces database queries, and substantially reduces memory use on sites with a high number of Pages. 2015-03-11 20:45:17 +00:00
includesMisc.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
includesPlugin.php Back up and restore dropins during get_dropins() tests. 2014-12-31 15:00:32 +00:00
includesPost.php Disallow post slugs that will result in permalinks that conflict with date archive URLs. 2015-05-29 12:52:17 +00:00
includesScreen.php In PHPUnit test classes, parent::tearDown() should be the last thing done in tearDown() methods. 2015-03-05 13:14:15 +00:00
includesTemplate.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
includesTheme.php Use @expectedDeprecated. see #25282, [25408]. 2013-09-12 18:37:32 +00:00