wordpress-develop/src/wp-includes
Sergey Biryukov 18f91933fb Canonical: Strip trailing punctuation from permalinks.
Previously attempted in [40256], which caused the test for decoded curly quotes to fail in some environments.

`$_SERVER['REQUEST_URI']` contains the encoded URI, so this version removes the failing tests and only checks for encoded curly quotes.

Props joostdevalk, lancewillett, SergeyBiryukov.
Fixes #20383.

git-svn-id: https://develop.svn.wordpress.org/trunk@41991 602fd350-edb4-49c9-b593-d223f7449a82
2017-10-24 14:17:22 +00:00
..
certificates
css Accessibility: Change all the #f00 and red to the official WordPress accent red. 2017-10-03 16:01:57 +00:00
customize Customize: Ease extendability of filter drawer 2017-10-23 18:57:46 +00:00
fonts
ID3 Media: update the getID3 library to version 1.9.14 to avoid fatal errors in PHP7. 2017-07-31 19:49:31 +00:00
images
IXR XML-RPC: Fix truncated warning message added in [38883]. 2016-10-29 21:31:29 +00:00
js Editor: Specify maxwidth in parse-embed requests based on width of editor iframe so that TinyMCE view embeds fit, particularly in Text widgets. 2017-10-24 04:06:23 +00:00
pomo I18N: Fix a PHP error introduced in [41722]. 2017-10-04 02:11:27 +00:00
random_compat
Requests HTTP: Update Requests to master (0048f3c) which fixes a number of outstanding issues. 2016-10-05 03:23:54 +00:00
rest-api REST API: Allow passing existing template value for posts even when template no longer exists. 2017-10-23 22:10:48 +00:00
SimplePie
Text Docs: Remove & prefixes from parameter documentation to avoid doc parsing errors. 2017-10-02 22:01:23 +00:00
theme-compat Embeds: Avoid "Division by zero" warning in embed-content.php template if a thumbnail has a zero height. 2017-10-18 15:08:58 +00:00
widgets Widgets: Improve extensibility of the Gallery widget and of media widgets generally. 2017-10-19 23:43:22 +00:00
admin-bar.php Users: Remove some links to the dashboard from My Sites for users who cannot access it. 2017-10-09 15:21:51 +00:00
atomlib.php General: Remove most uses of create_function() 2016-12-13 01:48:41 +00:00
author-template.php Editor: Add CodeMirror-powered code editor with syntax highlighting, linting, and auto-completion. 2017-09-13 06:07:48 +00:00
bookmark-template.php
bookmark.php General: Use interpolation instead of concatenation for all dynamic hook names. 2016-12-14 04:17:38 +00:00
cache.php Docs: Standardise the format used for documenting parameters passed by reference. 2017-10-02 22:13:04 +00:00
canonical.php Canonical: Strip trailing punctuation from permalinks. 2017-10-24 14:17:22 +00:00
capabilities.php Role/Capability: Prevent a fatal error when checking a language capability early or in the frontend. 2017-10-16 22:54:01 +00:00
category-template.php Taxonomy: After [40903], restore documentation for wp_dropdown_categories() arguments that are different from the defaults in WP_Term_Query::__construct(). 2017-10-05 01:56:48 +00:00
category.php I18N: Merge similar strings in _deprecated_argument() calls. 2017-01-29 11:49:49 +00:00
class-feed.php Load: Re-add class-feed.php. 2016-12-03 03:29:23 +00:00
class-http.php Docs: Correct type and description for the $data parameter in WP_Http::browser_redirect_compatibility(). 2017-10-18 16:37:08 +00:00
class-IXR.php Bootstrap: do not go gentle into that good night r38411, r38412, and parts of r38389. 2016-08-31 16:30:48 +00:00
class-json.php
class-oembed.php Embeds: Add oEmbed support for someecards.com. 2017-10-02 19:09:46 +00:00
class-phpass.php
class-phpmailer.php Update PHPMailer to 5.2.22. 2017-01-11 01:22:46 +00:00
class-pop3.php Docs: Fix multiple trivial typos throughout a variety of core files. 2016-10-31 06:27:53 +00:00
class-requests.php HTTP: Update Requests to master (0048f3c) which fixes a number of outstanding issues. 2016-10-05 03:23:54 +00:00
class-simplepie.php
class-smtp.php Update PHPMailer to 5.2.22. 2017-01-11 01:22:46 +00:00
class-snoopy.php
class-walker-category-dropdown.php Docs: Standardise the format used for documenting parameters passed by reference. 2017-10-02 22:13:04 +00:00
class-walker-category.php Docs: Standardise the format used for documenting parameters passed by reference. 2017-10-02 22:13:04 +00:00
class-walker-comment.php Docs: Standardise the format used for documenting parameters passed by reference. 2017-10-02 22:13:04 +00:00
class-walker-nav-menu.php Menus: Remove an extra space in the <ul> tag in Walker_Nav_Menu::start_lvl(). 2017-10-20 10:39:50 +00:00
class-walker-page-dropdown.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-walker-page.php Docs: Standardise the format used for documenting parameters passed by reference. 2017-10-02 22:13:04 +00:00
class-wp-admin-bar.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-ajax-response.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-comment-query.php Docs: Remove & prefixes from parameter documentation to avoid doc parsing errors. 2017-10-02 22:01:23 +00:00
class-wp-comment.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-customize-control.php Customize: Move control's fallback selection of default content template to renderContent method to align with sections and panels. 2017-10-19 03:03:19 +00:00
class-wp-customize-manager.php Docs: Correct a class name in the docs for WP_Customize_Manager::post_value(). 2017-10-24 11:56:32 +00:00
class-wp-customize-nav-menus.php Customize: Use typographic quotation marks in the strings added in [41768]. 2017-10-20 14:06:42 +00:00
class-wp-customize-panel.php Accessibility: CodeMirror editing areas minor improvements. 2017-09-24 15:59:56 +00:00
class-wp-customize-section.php Customize: Improve the menu creation flow. 2017-10-05 02:21:22 +00:00
class-wp-customize-setting.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-customize-widgets.php Widgets: Rename "Custom Menu" widget to "Navigation Menu". 2017-10-15 22:22:59 +00:00
class-wp-dependency.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-editor.php Docs: Document $default_scripts parameter in _WP_Editors::enqueue_scripts(). 2017-10-18 18:08:02 +00:00
class-wp-embed.php Embeds: Cache oEmbeds in an oembed_cache custom post type instead of postmeta when there is no global $post. 2017-09-30 01:14:34 +00:00
class-wp-error.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-feed-cache-transient.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-feed-cache.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-hook.php Docs: Use correct order of arguments in the DocBlock for WP_Hook::has_filter(). 2017-09-21 09:59:12 +00:00
class-wp-http-cookie.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-http-curl.php I18N: Replace function name in error message in WP_Http_Curl::request() and WP_Http_Streams::request() with a placeholder. 2017-10-18 15:03:07 +00:00
class-wp-http-encoding.php
class-wp-http-ixr-client.php
class-wp-http-proxy.php
class-wp-http-requests-hooks.php Docs: Remove superfluous @package WordPress and @subpackage notations used outside of file headers in a variety of core files. 2017-07-01 16:57:13 +00:00
class-wp-http-requests-response.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-http-response.php HTTP API: Use WP_HTTP_Response::set_data() in ::__construct() instead of directly accessing the $data property. 2017-10-03 15:17:09 +00:00
class-wp-http-streams.php I18N: Replace function name in error message in WP_Http_Curl::request() and WP_Http_Streams::request() with a placeholder. 2017-10-18 15:03:07 +00:00
class-wp-image-editor-gd.php Media: Rename several attachment related parameters from $post_id to $attachment_id for clarity, and improve related 2017-08-22 11:11:23 +00:00
class-wp-image-editor-imagick.php Media: Rename several attachment related parameters from $post_id to $attachment_id for clarity, and improve related 2017-08-22 11:11:23 +00:00
class-wp-image-editor.php Media: Rename several attachment related parameters from $post_id to $attachment_id for clarity, and improve related 2017-08-22 11:11:23 +00:00
class-wp-list-util.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-locale-switcher.php General: Improve terminology used when referring to installations of WordPress and its extensions. 2017-08-22 11:51:11 +00:00
class-wp-locale.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-matchesmapregex.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-meta-query.php Docs: Standardise the format used for documenting parameters passed by reference. 2017-10-02 22:13:04 +00:00
class-wp-metadata-lazyloader.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-network-query.php Multisite: Document all return types in get_networks(). 2017-10-18 18:12:20 +00:00
class-wp-network.php Multisite: Take WP_Network::$blog_id into account in get_main_site_id(). 2017-10-14 22:41:15 +00:00
class-wp-oembed-controller.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-post-type.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-post.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-query.php Docs: Standardise the format used for documenting parameters passed by reference. 2017-10-02 22:13:04 +00:00
class-wp-rewrite.php Docs: Standardise the format used for documenting parameters passed by reference. 2017-10-02 22:13:04 +00:00
class-wp-role.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-roles.php Multisite: Improve initializing available roles when switch sites. 2017-09-27 21:43:59 +00:00
class-wp-session-tokens.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-simplepie-file.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-simplepie-sanitize-kses.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-site-query.php Multisite: Document all return types in get_sites(). 2017-10-18 17:38:35 +00:00
class-wp-site.php Multisite: Revert [41719]. 2017-10-16 22:28:52 +00:00
class-wp-tax-query.php Docs: Standardise the format used for documenting parameters passed by reference. 2017-10-02 22:13:04 +00:00
class-wp-taxonomy.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-term-query.php Taxonomy: Add note about $number inconsistency to WP_Term_Query docs. 2017-10-16 18:37:35 +00:00
class-wp-term.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-text-diff-renderer-inline.php
class-wp-text-diff-renderer-table.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-theme.php Themes: Show templates from both parent and child theme when calling WP_Theme::get_post_templates(). 2017-10-23 20:07:06 +00:00
class-wp-user-meta-session-tokens.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-user-query.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-user.php Multisite: Initialize a user's roles correctly when setting them up for a different site. 2017-09-27 21:09:11 +00:00
class-wp-walker.php Docs: Standardise the format used for documenting parameters passed by reference. 2017-10-02 22:13:04 +00:00
class-wp-widget-factory.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class-wp-widget.php Docs: Standardise the format used for documenting parameters passed by reference. 2017-10-02 22:13:04 +00:00
class-wp-xmlrpc-server.php Comments: Check if wp_new_comment() returns an error. 2017-10-23 22:11:11 +00:00
class-wp.php Docs: Remove & prefixes from parameter documentation to avoid doc parsing errors. 2017-10-02 22:01:23 +00:00
class.wp-dependencies.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
class.wp-scripts.php Docs: Remove & prefixes from parameter documentation to avoid doc parsing errors. 2017-10-02 22:01:23 +00:00
class.wp-styles.php Docs: Remove & prefixes from parameter documentation to avoid doc parsing errors. 2017-10-02 22:01:23 +00:00
comment-template.php Docs: Clarify that get_comments_number() can return either a numeric string (for compatibility reasons) or 0 if the post doesn't exist. 2017-08-20 20:12:50 +00:00
comment.php Comments: Check if wp_new_comment() returns an error. 2017-10-23 22:11:11 +00:00
compat.php General: Move the __autoload() compat function into its own file to prevent deprecated notices being thrown by the compiler in PHP 7.2. 2017-07-28 01:14:03 +00:00
cron.php Docs: Use third-person singular verbs in the summaries for wp_unschedule_hook() and wp_clear_scheduled_hook(). 2017-06-30 04:53:53 +00:00
date.php Docs: Remove @access notations from method DocBlocks in wp-includes/* classes. 2017-07-27 00:40:27 +00:00
default-constants.php Docs: Document $wp_version global in wp_initial_constants(). 2017-10-20 22:03:59 +00:00
default-filters.php Dashboard: Remove "Try Gutenberg" callout. 2017-10-23 20:47:27 +00:00
default-widgets.php Widgets: Introduce Gallery widget for displaying image galleries. 2017-09-25 06:27:32 +00:00
deprecated.php General: Correct _deprecated_function() calls in debug_fopen(), debug_fwrite(), and debug_fclose(). 2017-10-07 00:39:41 +00:00
embed-template.php
embed.php Embeds: In switched state, restore previous state if no post ID is found. 2017-09-28 16:28:46 +00:00
feed-atom-comments.php Feeds: Do not translate the lastBuildDate field in RSS feeds. 2016-12-16 06:38:10 +00:00
feed-atom.php Feeds: Do not translate the lastBuildDate field in RSS feeds. 2016-12-16 06:38:10 +00:00
feed-rdf.php Feeds: Always return a valid timestamp for the Last-Modified header of comment or post feeds. 2016-10-25 20:47:06 +00:00
feed-rss2-comments.php Feeds: Do not translate the lastBuildDate field in RSS feeds. 2016-12-16 06:38:10 +00:00
feed-rss2.php Feeds: Replace the RSS2 lastBuildDate date field with the r date specifier. 2016-12-16 06:41:45 +00:00
feed-rss.php Feeds: Always return a valid timestamp for the Last-Modified header of comment or post feeds. 2016-10-25 20:47:06 +00:00
feed.php Docs: Remove & prefixes from parameter documentation to avoid doc parsing errors. 2017-10-02 22:01:23 +00:00
formatting.php Emoji: Fix incorrect emoji encoding in PHP < 5.4. 2017-10-03 09:56:45 +00:00
functions.php Formatting: Make sure wp_allowed_protocols() is filterable until wp_loaded has fired. 2017-10-24 13:24:43 +00:00
functions.wp-scripts.php Customize: Implement customized state persistence with changesets. 2016-10-18 20:04:36 +00:00
functions.wp-styles.php Script Loader: Correct default value for $src in wp_enqueue_script() and wp_enqueue_style(). 2016-09-04 04:08:11 +00:00
general-template.php Code Editor: Keep linting and its error reporting configured when lint option is changed dynamically. 2017-10-23 19:54:33 +00:00
http.php Docs: Add @access private entries for _get_component_from_parsed_url_array() and _wp_translate_php_url_constant_to_key(). 2017-09-22 21:59:55 +00:00
kses.php Docs: Adjust notation for the $context parameter in the DocBlocks for the wp_kses_allowed_html() function and its associated wp_kses_allowed_html filter. 2017-06-25 22:15:18 +00:00
l10n.php I18N: Make sure wp_dropdown_languages() does not print out empty name and id attributes. 2017-10-04 15:22:15 +00:00
link-template.php Posts, Post Types: Pass the order parameter to get_{$adjacent}_post_sort filter. 2017-09-24 23:00:08 +00:00
load.php Docs: Document $ini_all staticvar in wp_is_ini_value_changeable(). 2017-10-18 19:53:40 +00:00
locale.php Load: No-op locale.php 2016-12-03 04:15:33 +00:00
media-template.php Media: Set correct value for "Link Rel" field in Image Details modal. 2017-08-31 11:16:56 +00:00
media.php Customizer: Improve handling of crops in the media library. 2017-10-19 04:17:31 +00:00
meta.php Options/Meta: Document valid types for registration. 2017-05-10 06:09:36 +00:00
ms-blogs.php Multisite: Document all return types in get_networks(). 2017-10-18 18:12:20 +00:00
ms-default-constants.php Multisite: Use get_current_blog_id() instead of $wpdb->blogid. 2017-10-02 01:43:48 +00:00
ms-default-filters.php Multisite: Only update a site's post count when post types of post are updated. 2017-10-02 03:08:18 +00:00
ms-deprecated.php Docs: Correct some @since MU notation that was broken in [41200]. 2017-10-03 17:43:37 +00:00
ms-files.php Multsite: Flush output buffer after readfile() in ms-files.php. 2016-09-27 20:05:00 +00:00
ms-functions.php Users: Revert [41613], [41614], and [41623] as this feature needs some more work. 2017-10-04 22:16:21 +00:00
ms-load.php Multisite: Use WP_Network_Query in ms_load_current_site_and_network(). 2017-10-03 19:26:01 +00:00
ms-settings.php Multisite: Explicitly globalize global variables in ms-settings.php. 2017-10-16 17:05:25 +00:00
nav-menu-template.php Menus: Make sure current-menu-parent and current-menu-ancestor classes are properly set for parent items of post type archive submenu items. 2017-07-05 21:30:30 +00:00
nav-menu.php Menus: Don't prime nav menu items cache if a persistent cache is being used. 2017-10-23 22:39:02 +00:00
option.php Transients: Clear expired transients from the database in a daily cron task. 2017-10-21 13:21:24 +00:00
pluggable-deprecated.php
pluggable.php Comments: Change IP references in moderation option labels and email notifications to IP address for clarity. 2017-10-03 13:08:48 +00:00
plugin.php Revert "Add wp.hooks - JavaScript actions and filters." 2017-10-04 20:24:52 +00:00
post-formats.php Docs: Improve the return description for get_post_format_slugs() to note that the array contains slugs as both keys and values. 2017-08-20 20:02:10 +00:00
post-template.php I18N: Allow for post custom field name in the_meta() to be translated, e.g. to insert a non-breaking space before the colon. 2017-09-24 11:27:17 +00:00
post-thumbnail-template.php Post Thumbnails: Pass post ID to post_thumbnail_size filter. 2017-08-18 18:18:51 +00:00
post.php Bump 'posts' query cache incrementor when modifying postmeta. 2017-10-12 15:19:30 +00:00
query.php Docs: Remove some more top-level @aacess tags from function DocBlocks. 2017-07-27 08:18:25 +00:00
registration-functions.php
registration.php
rest-api.php REST API: Add _fields parameter to selectively include fields in response JSON. 2017-10-04 18:44:41 +00:00
revision.php Docs: Improve the documentation for parameters which accept OBJECT, ARRAY_A, and ARRAY_N as parameters. 2016-11-09 22:59:02 +00:00
rewrite.php Rewrite: In url_to_postid(), bail early if the URL does not belong to the site. 2017-10-06 23:28:38 +00:00
rss-functions.php
rss.php Docs: Fix multiple trivial typos throughout a variety of core files. 2016-10-31 06:27:53 +00:00
script-loader.php Code Editor: Add underscore as a dependency for the code-editor script. 2017-10-23 20:37:22 +00:00
session.php Load: Re-add session.php. 2016-12-03 03:50:02 +00:00
shortcodes.php Docs: Fix a typo in the DocBlock description for add_shortcode() introduced in [41281]. 2017-08-20 20:37:47 +00:00
spl-autoload-compat.php General: Move the __autoload() compat function into its own file to prevent deprecated notices being thrown by the compiler in PHP 7.2. 2017-07-28 01:14:03 +00:00
taxonomy.php Taxonomy: After [40984], add the most_used label for non-hierarchical taxonomies too, and use it on the Menus screen. 2017-10-24 11:21:47 +00:00
template-loader.php Themes: Remove paged.php from the theme template hierarchy. 2016-10-07 21:02:39 +00:00
template.php Docs: Don't reference non-existent hooks inline in the DocBlock descriptions for the following template functions: 2017-06-29 16:04:45 +00:00
theme.php Customizer: Improve handling of crops in the media library. 2017-10-19 04:17:31 +00:00
update.php Docs: Correct docs introduced in [41965]. 2017-10-21 22:41:57 +00:00
user.php Docs: Correct some @since MU notation that was broken in [41200]. 2017-10-03 17:43:37 +00:00
vars.php General: Introduce a wp_is_mobile filter for controlling whether a request should be treated as coming from a mobile device. 2017-06-15 12:04:56 +00:00
version.php Post WordPress 4.9 Beta 3 version bump. 2017-10-19 05:07:23 +00:00
widgets.php Docs: After [37329], update the documentation for register_widget() and unregister_widget(). 2017-10-19 13:50:56 +00:00
wlwmanifest.xml
wp-db.php Database: Add translators comment for error message in wpdb::prepare(). 2017-10-11 08:34:34 +00:00
wp-diff.php Bootstrap: do not go gentle into that good night r38411, r38412, and parts of r38389. 2016-08-31 16:30:48 +00:00