WordPress/wp-includes
Boone Gorges ebac76facc When parsing what appears to be a date archive request, check for a post with a clashing permalink before resolving to the archive.
A URL like `example.com/2015/05/15/` generally resolves to the May 15, 2015 date
archive. But in certain cases, it could also be the permalink of a post with
the slug `'2015'`. When a conflict of this sort is detected, resolve to the post
instead of the archive.

URL conflicts of this sort should no longer occur for new posts; see [32647].

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


git-svn-id: http://core.svn.wordpress.org/trunk@32618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-29 13:10:24 +00:00
..
ID3
SimplePie
Text
certificates
css Autoprefixer for [32506]. see #31874. 2015-05-15 20:44:25 +00:00
fonts
images Smilies: Update our few remaining smilies to better align with Twemoji, and add frownie.png until Twemoji provide a build containing it. 2015-04-10 06:20:26 +00:00
js Link modal: reset search results appropriately 2015-05-25 06:41:25 +00:00
pomo Replace `array_shift()` with `reset()` where appropriate for performance. 2015-03-19 03:56:27 +00:00
theme-compat Add a sanity check to `theme-compat/header.php` to avoid outputting CSS which could reference a non-existant file. 2015-05-12 10:47:29 +00:00
admin-bar.php Add missing doc blocks to `admin-bar.php`. 2015-05-22 04:00:26 +00:00
atomlib.php Merge similar error strings. 2015-05-09 18:27:26 +00:00
author-template.php Pass the original `$user_id` variable to the filter in `get_the_author_meta()`. 2015-05-25 13:06:25 +00:00
bookmark-template.php Use `void` instead of `null` where appropriate when pipe-delimiting `@return` types. If a `@return` only contains `void`, remove it. 2015-05-24 05:40:25 +00:00
bookmark.php In `bookmark.php`, clarify some `return` docs. 2015-05-21 20:13:25 +00:00
cache.php Add/standardize missing doc blocks for `cache.php`. 2015-05-22 04:24:26 +00:00
canonical.php Use `void` instead of `null` where appropriate when pipe-delimiting `@return` types. If a `@return` only contains `void`, remove it. 2015-05-24 05:40:25 +00:00
capabilities.php Use `void` instead of `null` where appropriate when pipe-delimiting `@return` types. If a `@return` only contains `void`, remove it. 2015-05-24 05:40:25 +00:00
category-template.php Use `void` instead of `null` where appropriate when pipe-delimiting `@return` types. If a `@return` only contains `void`, remove it. 2015-05-24 05:40:25 +00:00
category.php Use `void` instead of `null` where appropriate when pipe-delimiting `@return` types. If a `@return` only contains `void`, remove it. 2015-05-24 05:40:25 +00:00
class-IXR.php
class-feed.php
class-http.php Clean up `@global` doc blocks/imports for `class-wp-customizer-*.php` and friends. 2015-05-22 05:06:25 +00:00
class-json.php
class-oembed.php In `class-oembed.php`, clarify/add some `return` docs. 2015-05-21 21:31:27 +00:00
class-phpass.php
class-phpmailer.php
class-pop3.php
class-simplepie.php
class-smtp.php
class-snoopy.php
class-wp-admin-bar.php Use `void` instead of `null` where appropriate when pipe-delimiting `@return` types. If a `@return` only contains `void`, remove it. 2015-05-24 05:40:25 +00:00
class-wp-ajax-response.php
class-wp-customize-control.php Use `void` instead of `null` where appropriate when pipe-delimiting `@return` types. If a `@return` only contains `void`, remove it. 2015-05-24 05:40:25 +00:00
class-wp-customize-manager.php Use `void` instead of `null` where appropriate when pipe-delimiting `@return` types. If a `@return` only contains `void`, remove it. 2015-05-24 05:40:25 +00:00
class-wp-customize-panel.php Add a missing file header to wp-includes/class-wp-customize-panel.php, separate out the class DocBlock for `WP_Customize_Panel`. 2015-02-25 08:09:25 +00:00
class-wp-customize-section.php In `class-wp-customize-*`, clarify/add some `@param`/`@return` blocks. Disambiguate some functions that are trying to return the `void` response of another function they call internally. 2015-05-21 22:05:24 +00:00
class-wp-customize-setting.php Use `void` instead of `null` where appropriate when pipe-delimiting `@return` types. If a `@return` only contains `void`, remove it. 2015-05-24 05:40:25 +00:00
class-wp-customize-widgets.php Fix wp_send_json_error() response for update-widget Ajax request, to return error code instead of error message, as the WP_Error objects are instantiated with codes and the messages are empty. 2015-05-25 22:09:25 +00:00
class-wp-editor.php Clean up `@global` doc blocks/imports for `class-wp-editor.php`. 2015-05-22 05:10:24 +00:00
class-wp-embed.php When calling `unset()`, it is unnecessary to immediately precede it with a call to `isset()`. 2015-05-22 05:47:25 +00:00
class-wp-error.php Use `void` instead of `null` where appropriate when pipe-delimiting `@return` types. If a `@return` only contains `void`, remove it. 2015-05-24 05:40:25 +00:00
class-wp-http-ixr-client.php Add missing doc blocks to `wp-image-editor*.php`. 2015-05-22 06:18:25 +00:00
class-wp-image-editor-gd.php Add a proper description comment for the `WP_Image_Editor_GD->$image` property. 2015-05-23 19:10:28 +00:00
class-wp-image-editor-imagick.php Add a proper description comment for the `WP_Image_Editor_Imagick->$image` property. 2015-05-23 19:20:24 +00:00
class-wp-image-editor.php Add missing doc blocks to `wp-image-editor*.php`. 2015-05-22 06:18:25 +00:00
class-wp-theme.php Use `void` instead of `null` where appropriate when pipe-delimiting `@return` types. If a `@return` only contains `void`, remove it. 2015-05-24 05:40:25 +00:00
class-wp-walker.php Cleanup missing doc blocks for `class-wp-walker.php`. 2015-05-22 17:59:25 +00:00
class-wp-xmlrpc-server.php `get_comments()` can return `int`, so a few places need to check if the return value is traversable before passing what is assumed to be an `array`. 2015-05-25 17:59:25 +00:00
class-wp.php When parsing what appears to be a date archive request, check for a post with a clashing permalink before resolving to the archive. 2015-05-29 13:10:24 +00:00
class.wp-dependencies.php Add a return value to `wp_register_script()` and `wp_register_style()` which matches the return value of `WP_Dependencies::add()`. 2015-05-10 19:57:25 +00:00
class.wp-scripts.php Use `void` instead of `null` where appropriate when pipe-delimiting `@return` types. If a `@return` only contains `void`, remove it. 2015-05-24 05:40:25 +00:00
class.wp-styles.php Add missing doc blocks to `class.wp-(scripts|styles).php`. 2015-05-24 05:05:26 +00:00
comment-template.php Use `void` instead of `null` where appropriate when pipe-delimiting `@return` types. If a `@return` only contains `void`, remove it. 2015-05-24 05:40:25 +00:00
comment.php Fix inline documentation syntax in `wp_xmlrpc_server`. 2015-05-25 06:25:25 +00:00
compat.php WPDB: When checking that a string can be sent to MySQL, we shouldn't use `mb_convert_encoding()`, as it behaves differently to MySQL's character encoding conversion. 2015-05-06 03:00:25 +00:00
cron.php Fix inline documentation syntax in `wp_xmlrpc_server`. 2015-05-25 06:25:25 +00:00
date.php Use HTTPS URLs for codex.wordpress.org. 2015-04-12 21:29:32 +00:00
default-constants.php
default-filters.php Revert change to default-filters.php in [32632]. see #32516. 2015-05-28 05:52:25 +00:00
default-widgets.php `get_comments()` can return `int`, so a few places need to check if the return value is traversable before passing what is assumed to be an `array`. 2015-05-25 17:59:25 +00:00
deprecated.php Use HTTPS URLs for codex.wordpress.org. 2015-04-12 21:29:32 +00:00
feed-atom-comments.php
feed-atom.php
feed-rdf.php
feed-rss.php Serve RSS feeds with the proper mime-type: `application/rss+xml`. The reason for hacking around browsers by using `text/xml` appears to no longer be relevant. 2015-05-09 06:39:24 +00:00
feed-rss2-comments.php Serve RSS feeds with the proper mime-type: `application/rss+xml`. The reason for hacking around browsers by using `text/xml` appears to no longer be relevant. 2015-05-09 06:39:24 +00:00
feed-rss2.php Serve RSS feeds with the proper mime-type: `application/rss+xml`. The reason for hacking around browsers by using `text/xml` appears to no longer be relevant. 2015-05-09 06:39:24 +00:00
feed.php In `fetch_feed()`, call `->set_output_encoding()` on the `SimplePie` instance to ensure the feed is served with encoding specified by the `blog_charset` option. 2015-05-09 06:49:24 +00:00
formatting.php Fix inline documentation syntax in `wp_xmlrpc_server`. 2015-05-25 06:25:25 +00:00
functions.php Add missing doc blocks to `wp-includes/functions.php`. 2015-05-25 16:11:25 +00:00
functions.wp-scripts.php Cleanup the use of `$wp_scripts` global in `functions.wp-scripts.php`. 2015-05-25 16:24:25 +00:00
functions.wp-styles.php Cleanup the use of `$wp_styles` global in `functions.wp-styles.php`. 2015-05-25 16:35:24 +00:00
general-template.php Cleanup doc blocks in `general-template.php`. 2015-05-25 17:18:26 +00:00
http.php Cleanup doc blocks in `http.php`. 2015-05-25 17:32:27 +00:00
kses.php Add missing doc blocks to `kses.php` - also fix some unfortunate whitespace issues in related funcs. 2015-05-26 18:06:24 +00:00
l10n.php Add missing doc blocks to `l10n.php` 2015-05-26 18:13:25 +00:00
link-template.php Fix doc blocks to `link-template.php` 2015-05-26 18:44:25 +00:00
load.php Add missing doc blocks to `load.php` 2015-05-26 18:53:27 +00:00
locale.php Add missing doc blocks to `locale.php` 2015-05-26 18:59:25 +00:00
media-template.php Fix doc blocks for `media*.php` 2015-05-26 19:23:25 +00:00
media.php Fix doc blocks for `media*.php` 2015-05-26 19:23:25 +00:00
meta.php Fix doc blocks for `meta.php` 2015-05-26 19:33:25 +00:00
ms-blogs.php Fix doc blocks for `ms-*.php` files. 2015-05-26 21:51:31 +00:00
ms-default-constants.php Fix doc blocks for `ms-*.php` files. 2015-05-26 21:51:31 +00:00
ms-default-filters.php Fix doc blocks for `ms-*.php` files. 2015-05-26 21:51:31 +00:00
ms-deprecated.php
ms-files.php
ms-functions.php Fix doc blocks for `ms-*.php` files. 2015-05-26 21:51:31 +00:00
ms-load.php Fix doc blocks for `ms-*.php` files. 2015-05-26 21:51:31 +00:00
ms-settings.php
nav-menu-template.php Fix doc blocks for `nav-menu*.php` files. 2015-05-26 22:10:25 +00:00
nav-menu.php Fix doc blocks for `nav-menu*.php` files. 2015-05-26 22:10:25 +00:00
option.php Fix doc blocks for `option.php`. 2015-05-26 22:17:25 +00:00
pluggable-deprecated.php
pluggable.php Add missing doc blocks for `pluggable.php`. 2015-05-27 15:32:26 +00:00
plugin.php Add missing doc blocks to `plugin.php`. 2015-05-27 15:56:26 +00:00
post-formats.php Add missing doc blocks to `post-formats.php`. 2015-05-27 16:06:25 +00:00
post-template.php Add missing doc blocks to `post-template.php`. 2015-05-27 16:26:25 +00:00
post-thumbnail-template.php Add missing doc blocks to `post-thumbnail-template.php`. 2015-05-27 16:29:28 +00:00
post.php Disallow post slugs that will result in permalinks that conflict with date archive URLs. 2015-05-29 12:53:24 +00:00
query.php Add missing doc blocks to `query.php`. 2015-05-27 18:15:25 +00:00
registration-functions.php
registration.php
revision.php Add missing doc blocks to `revision.php`. 2015-05-27 18:38:24 +00:00
rewrite.php When parsing what appears to be a date archive request, check for a post with a clashing permalink before resolving to the archive. 2015-05-29 13:10:24 +00:00
rss-functions.php
rss.php
script-loader.php Add missing doc blocks to `script-loader.php`. 2015-05-27 19:34:27 +00:00
session.php
shortcodes.php Add missing doc blocks to `shortcodes.php`. 2015-05-27 19:39:25 +00:00
taxonomy.php Add missing doc blocks to `taxonomy.php`. 2015-05-27 22:00:25 +00:00
template-loader.php
template.php Add missing doc blocks to `template.php`. 2015-05-27 22:04:26 +00:00
theme.php Fix `return` error in get_theme_mods() from [32629]. 2015-05-28 05:51:25 +00:00
update.php Add missing doc blocks to `update.php`: 2015-05-28 15:29:28 +00:00
user.php Add missing doc blocks to `user.php`. 2015-05-28 15:51:25 +00:00
vars.php Use HTTPS URLs for codex.wordpress.org. 2015-04-12 21:29:32 +00:00
version.php When parsing what appears to be a date archive request, check for a post with a clashing permalink before resolving to the archive. 2015-05-29 13:10:24 +00:00
widgets.php Add missing doc blocks to `widgets.php`. 2015-05-28 16:20:25 +00:00
wlwmanifest.xml
wp-db.php Add missing/alter existing doc blocks for `wp-db.php`. 2015-05-28 20:10:29 +00:00
wp-diff.php