Go to file
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
src Disallow post slugs that will result in permalinks that conflict with date archive URLs. 2015-05-29 12:52:17 +00:00
tests Disallow post slugs that will result in permalinks that conflict with date archive URLs. 2015-05-29 12:52:17 +00:00
tools/i18n i18n tools: Delete `data/not-gettexted-0-work.php`. 2015-02-22 12:55:34 +00:00
.editorconfig Use HTTPS URLs for codex.wordpress.org. 2015-04-12 21:28:58 +00:00
.gitignore Ignore `.DS_Store` files. 2015-03-13 18:11:33 +00:00
.jshintrc Update `grunt-contrib-jshint` to `0.11.0` 2015-03-06 21:07:35 +00:00
.travis.yml Run unit tests on Travis CI with php nightlies 2015-02-26 17:49:13 +00:00
Gruntfile.js Move the built media JS files up a directory to their previous location and naming convention. This fidgets with part of [31373] and will maintain BC for those who were loading those files directly (not using the enqueue system). 2015-04-14 15:30:16 +00:00
package.json Update grunt-autoprefixer to 3.0.0 2015-05-05 21:29:04 +00:00
phpunit.xml.dist Exclude external-http tests when running `phpunit`. 2014-11-10 14:48:28 +00:00
wp-cli.yml Introduce default `wp-cli.yml` for core development. 2014-04-30 21:35:18 +00:00
wp-config-sample.php Lightly clean up and improve inline documentation in wp-config-sample.php. 2015-05-10 00:05:30 +00:00
wp-tests-config-sample.php Update wp-tests-config-sample.php to run with WP_DEBUG by default. see #25282. 2013-09-23 16:17:59 +00:00