WordPress/wp-includes
Ryan McCue dc133c3f2d REST API: Allow shortcircuiting rest_pre_insert_comment
rest_pre_insert_{post_type} allows returning a WP_Error from the filter to shortcircuit actually creating the object, so it makes sense to do so for comments too.

Props dspilka.
Fixes #39578.

Built from https://develop.svn.wordpress.org/trunk@39922


git-svn-id: http://core.svn.wordpress.org/trunk@39859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-17 05:18:41 +00:00
..
certificates
css Customize: Remove extra left padding in core for site title and widgets in preview. 2017-01-05 04:33:43 +00:00
customize Docs: Correct @access entries and duplicate hook references in WP_Customize_Selective_Refresh. 2017-01-06 22:09:13 +00:00
fonts
ID3
images
IXR XML-RPC: Fix truncated warning message added in [38883]. 2016-10-29 21:32:33 +00:00
js TinyMCE: strip browser inserted <u> and <font>` tags from inside links when copying and pasting in IE and Edge. 2017-01-17 01:25:44 +00:00
pomo General: Correctly detect trailing newline when prepending. 2016-12-13 02:48:41 +00:00
random_compat
Requests HTTP: Update Requests to master (0048f3c) which fixes a number of outstanding issues. 2016-10-05 03:24:37 +00:00
rest-api REST API: Allow shortcircuiting rest_pre_insert_comment 2017-01-17 05:18:41 +00:00
SimplePie
Text
theme-compat
widgets Docs: Fix an incorrect pseudo-parameter referenced in the hook doc for the widget_tag_cloud_args filter. 2016-10-31 06:40:49 +00:00
admin-bar.php Multisite: Replace is_super_admin() with manage_network for admin bar permissions. 2016-12-04 21:21:42 +00:00
atomlib.php General: Remove most uses of create_function() 2016-12-13 01:49:39 +00:00
author-template.php Docs: Add and correct @since docs for a variety of functions and methods. 2016-12-27 09:21:44 +00:00
bookmark-template.php
bookmark.php General: Use interpolation instead of concatenation for all dynamic hook names. 2016-12-14 04:18:42 +00:00
cache.php Docs: Fix multiple trivial typos throughout a variety of core files. 2016-10-31 06:28:32 +00:00
canonical.php
capabilities.php Multisite: Handle capability check for removing oneself via map_meta_cap(). 2016-12-12 21:42:42 +00:00
category-template.php Docs: Misc corrections and additions to inline documentation. 2016-12-27 09:28:40 +00:00
category.php Docs: Improve the documentation for parameters which accept OBJECT, ARRAY_A, and ARRAY_N as parameters. 2016-11-09 23:00:32 +00:00
class-feed.php Load: Re-add class-feed.php. 2016-12-03 03:30:42 +00:00
class-http.php WP_HTTP: Map internal Requests hooks to WordPress actions. 2016-11-13 10:36:29 +00:00
class-IXR.php
class-json.php
class-oembed.php Embeds: Realign the provider list after [38693]. 2016-10-25 20:16:56 +00:00
class-phpass.php
class-phpmailer.php Update PHPMailer to 5.2.22. 2017-01-11 01:23:41 +00:00
class-pop3.php Docs: Fix multiple trivial typos throughout a variety of core files. 2016-10-31 06:28:32 +00:00
class-requests.php HTTP: Update Requests to master (0048f3c) which fixes a number of outstanding issues. 2016-10-05 03:24:37 +00:00
class-simplepie.php
class-smtp.php Update PHPMailer to 5.2.22. 2017-01-11 01:23:41 +00:00
class-snoopy.php
class-walker-category-dropdown.php
class-walker-category.php
class-walker-comment.php
class-walker-nav-menu.php
class-walker-page-dropdown.php
class-walker-page.php Docs: Fix multiple trivial typos throughout a variety of core files. 2016-10-31 06:28:32 +00:00
class-wp-admin-bar.php Accessibility: Revert [38984] as it needs to be better communicated to plugin authors. 2016-11-05 16:28:33 +00:00
class-wp-ajax-response.php
class-wp-comment-query.php Comments: Clean up unused code after [38446]. 2016-12-07 15:52:44 +00:00
class-wp-comment.php
class-wp-customize-control.php Customize: Clean up docs and code style for customize changes in 4.7. 2016-11-23 06:05:32 +00:00
class-wp-customize-manager.php Customizer: Don't query for postmeta for Custom CSS (for not-current-themes) and Customizer Changeset posts. 2017-01-05 08:12:42 +00:00
class-wp-customize-nav-menus.php Posts, Post Types: Use an existing string for "Invalid post type" error message. 2017-01-10 02:40:42 +00:00
class-wp-customize-panel.php
class-wp-customize-section.php Customize: Introduce custom CSS for extending theme styles. 2016-10-19 18:15:31 +00:00
class-wp-customize-setting.php General: Use interpolation instead of concatenation for all dynamic hook names. 2016-12-14 04:18:42 +00:00
class-wp-customize-widgets.php Customize: Use selected user language for edit shortcuts in preview instead of site language. 2016-12-08 19:32:59 +00:00
class-wp-dependency.php
class-wp-editor.php Always add page-template-default class to the editor body when the template is not specified. This matches the behavior on the front-end. 2017-01-05 01:53:43 +00:00
class-wp-embed.php Embed: wp-settings.php loads class-wp-embed.php, which currently produces side effects. Move the global instantiation to wp-settings.php. WP_Embed is then in a file by itself. 2016-08-26 09:53:28 +00:00
class-wp-error.php
class-wp-feed-cache-transient.php
class-wp-feed-cache.php
class-wp-hook.php Plugins: Add a current_priority() method to WP_Hook. 2016-12-02 07:10:43 +00:00
class-wp-http-cookie.php
class-wp-http-curl.php
class-wp-http-encoding.php
class-wp-http-ixr-client.php
class-wp-http-proxy.php
class-wp-http-requests-hooks.php WP_HTTP: Map internal Requests hooks to WordPress actions. 2016-11-13 10:36:29 +00:00
class-wp-http-requests-response.php HTTP: Document that the return value of wp_remote_retrieve_headers() changed from a simple array to an object which implements ArrayAccess. 2016-10-05 03:51:28 +00:00
class-wp-http-response.php
class-wp-http-streams.php
class-wp-image-editor-gd.php
class-wp-image-editor-imagick.php PDF Images: Avoid a PHP Warning when attempting to process a file without an extension. 2016-12-12 06:19:41 +00:00
class-wp-image-editor.php
class-wp-list-util.php General: Introduce a wp_list_sort() helper function, v2. 2016-10-25 21:26:32 +00:00
class-wp-locale-switcher.php I18N: Add an additional caching layer for _load_textdomain_just_in_time(). 2016-11-21 16:07:33 +00:00
class-wp-locale.php Docs: Correct @access entries for WP_Locale::init() and WP_Locale::register_globals(). 2017-01-06 22:11:16 +00:00
class-wp-matchesmapregex.php
class-wp-meta-query.php General: Restore usage of $wpdb, instead of $this->db. 2016-10-10 06:38:31 +00:00
class-wp-metadata-lazyloader.php
class-wp-network-query.php Cache API: introduce wp_cache_get_last_changed to improve DRY 2016-10-21 02:54:34 +00:00
class-wp-network.php
class-wp-oembed-controller.php
class-wp-post-type.php
class-wp-post.php Posts, Post Types: Add support for post type templates. 2016-10-26 08:07:30 +00:00
class-wp-query.php Query: Improve documentation for orderby=relevance in WP_Query. 2016-12-23 02:31:41 +00:00
class-wp-rewrite.php Make sure rewrite rules are not written until wp_loaded has fired 2016-10-07 19:44:28 +00:00
class-wp-role.php
class-wp-roles.php Roles: Fix a PHP error introduced in [39082]. 2016-11-02 05:55:30 +00:00
class-wp-session-tokens.php Docs: Add missing session_token_manager duplicate hook reference in wp-includes/class-wp-session-tokens.php. 2017-01-04 13:22:42 +00:00
class-wp-simplepie-file.php
class-wp-simplepie-sanitize-kses.php
class-wp-site-query.php Cache API: introduce wp_cache_get_last_changed to improve DRY 2016-10-21 02:54:34 +00:00
class-wp-site.php Multisite: Deprecate the blog_details filter. 2016-10-25 23:44:30 +00:00
class-wp-tax-query.php Don't double-escape terms payload in WP_Tax_Query::transform_query(). 2017-01-02 19:40:19 +00:00
class-wp-taxonomy.php Taxonomy: Introduce WP_Taxonomy and use it in register_taxonomy() and unregister_taxonomy(). 2016-10-07 17:12:29 +00:00
class-wp-term-query.php Docs: Correct @since and @access tags for WP_Term_Query::get_terms() and WP_Term_Query::parse_orderby_meta(). 2017-01-04 13:39:43 +00:00
class-wp-term.php
class-wp-text-diff-renderer-inline.php
class-wp-text-diff-renderer-table.php
class-wp-theme.php Themes: Fix markup for theme name fallbacks. 2017-01-11 10:34:44 +00:00
class-wp-user-meta-session-tokens.php
class-wp-user-query.php User Query: Cast $user_total as an int. 2017-01-16 23:24:45 +00:00
class-wp-user.php Docs: Correct @access entry for WP_User::filter property. 2017-01-06 22:09:55 +00:00
class-wp-walker.php Docs: Add missing @since entry for Walker::unset_children(). 2017-01-06 22:14:00 +00:00
class-wp-widget-factory.php
class-wp-widget.php Docs: Fix multiple trivial typos throughout a variety of core files. 2016-10-31 06:28:32 +00:00
class-wp-xmlrpc-server.php Text Changes: Merge strings referring to list_users capability. 2016-11-19 02:16:30 +00:00
class-wp.php Feeds: Always return a valid timestamp for the Last-Modified header of comment or post feeds. 2016-10-25 20:48:29 +00:00
class.wp-dependencies.php
class.wp-scripts.php
class.wp-styles.php
comment-template.php Docs: Use correct closing tag in submit_field description in comment_form(). 2017-01-07 14:51:44 +00:00
comment.php Ignore the 'comment_order' setting when determining comment pagination. 2017-01-02 20:00:31 +00:00
compat.php
cron.php
date.php Docs: Add missing @since and @access tags for WP_Date_Query::is_first_order_clause(). 2017-01-04 13:26:43 +00:00
default-constants.php Themes: Twenty Seventeen is now the default theme. 2016-10-20 09:13:29 +00:00
default-filters.php Customize: Bump wp_custom_css_cb from running at wp_head priority 11 to 101 to ensure Custom CSS overrides other CSS. 2016-12-16 07:29:42 +00:00
default-widgets.php
deprecated.php Docs: Make @deprecated entry for wp_kses_js_entities(), deprecated in [38785], consistent with other entries. 2017-01-10 22:09:42 +00:00
embed-template.php
embed.php Embeds: Correctly remove security attribute from iframes in IE 10 and IE 11. 2016-11-23 13:38:33 +00:00
feed-atom-comments.php Feeds: Do not translate the lastBuildDate field in RSS feeds. 2016-12-16 06:39:41 +00:00
feed-atom.php Feeds: Do not translate the lastBuildDate field in RSS feeds. 2016-12-16 06:39:41 +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:48:29 +00:00
feed-rss2-comments.php Feeds: Do not translate the lastBuildDate field in RSS feeds. 2016-12-16 06:39:41 +00:00
feed-rss2.php Feeds: Replace the RSS2 lastBuildDate date field with the r date specifier. 2016-12-16 06:42:40 +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:48:29 +00:00
feed.php Feeds: Don't override the Content-Type header inside fetc_feed() 2017-01-05 03:06:42 +00:00
formatting.php Formatting: fix wpautop() to stop adding paragraph tags around <figcaption>. 2017-01-16 01:06:40 +00:00
functions.php Docs: Add missing @param type for wp_cache_get_last_changed(). 2017-01-13 14:16:44 +00:00
functions.wp-scripts.php Customize: Implement customized state persistence with changesets. 2016-10-18 20:05:31 +00:00
functions.wp-styles.php
general-template.php Docs: Misc corrections and additions to inline documentation. 2016-12-27 09:28:40 +00:00
http.php Multisite: Use get_network() and get_current_network_id() for current network data. 2016-10-19 04:47:30 +00:00
kses.php Docs: Add and correct @since docs for a variety of functions and methods. 2016-12-27 09:21:44 +00:00
l10n.php I18N: In wp_dropdown_languages() rename the new show_site_locale_default argument to show_option_site_default. 2016-11-21 16:14:30 +00:00
link-template.php Docs: Misc corrections and additions to inline documentation. 2016-12-27 09:28:40 +00:00
load.php Bootstrap: Re-initialize any hooks added manually by object-cache.php. 2016-12-12 01:29:42 +00:00
locale.php Load: No-op locale.php 2016-12-03 04:16:38 +00:00
media-template.php Docs: Misc corrections and additions to inline documentation. 2016-12-27 09:28:40 +00:00
media.php Docs: Add and correct @since docs for a variety of functions and methods. 2016-12-27 09:21:44 +00:00
meta.php Update link in register_meta about 4.6 changes 2016-11-01 06:54:34 +00:00
ms-blogs.php Roles/Capabilities: Add a new wp_roles_init filter. 2016-11-02 00:31:32 +00:00
ms-default-constants.php Multisite: Use get_network() and get_current_network_id() for current network data. 2016-10-19 04:47:30 +00:00
ms-default-filters.php
ms-deprecated.php Multisite: Replace get_blog_details() in inline documentation. 2016-10-26 03:39:29 +00:00
ms-files.php Multsite: Flush output buffer after readfile() in ms-files.php. 2016-09-27 20:05:28 +00:00
ms-functions.php Users: Introduce signup_site_meta and signup_user_meta for filtering signup metadata in wpmu_signup_blog() and wpmu_signup_user(), respectively. 2017-01-17 03:53:42 +00:00
ms-load.php Multisite: Replace get_blog_details() in inline documentation. 2016-10-26 03:39:29 +00:00
ms-settings.php
nav-menu-template.php Menus: Add the menu-item-home class to the static front page item. 2016-10-26 01:58:30 +00:00
nav-menu.php Docs: Add and correct @since docs for a variety of functions and methods. 2016-12-27 09:21:44 +00:00
option.php General: Use interpolation instead of concatenation for all dynamic hook names. 2016-12-14 04:18:42 +00:00
pluggable-deprecated.php
pluggable.php Mail: In PHPMailer 5.2.7 the case of the Send() method changed to send(), update our call for consistency with the library. 2017-01-05 08:10:42 +00:00
plugin.php
post-formats.php
post-template.php Posts, Post Types: Ensure is_page_template() can only return true when viewing a singular post query. 2016-12-14 03:43:43 +00:00
post-thumbnail-template.php
post.php I18N: Add post type context to "Featured Image" post labels. 2017-01-04 08:40:41 +00:00
query.php
registration-functions.php
registration.php
rest-api.php REST API: Improve error messages for number relational validation. 2017-01-13 04:38:40 +00:00
revision.php Docs: Improve the documentation for parameters which accept OBJECT, ARRAY_A, and ARRAY_N as parameters. 2016-11-09 23:00:32 +00:00
rewrite.php
rss-functions.php
rss.php Docs: Fix multiple trivial typos throughout a variety of core files. 2016-10-31 06:28:32 +00:00
script-loader.php Media: Use a consistent error message for file type errors on uploading. 2017-01-12 06:29:43 +00:00
session.php Load: Re-add session.php. 2016-12-03 03:51:41 +00:00
shortcodes.php Shortcodes: Clarify the docs for pre_do_shortcode_tag and do_shortcode_tag. 2017-01-03 04:00:18 +00:00
taxonomy.php Docs: In wp_set_object_terms(), add a note that passing an empty value as $terms argument will remove all related terms. 2017-01-12 06:54:42 +00:00
template-loader.php Themes: Remove paged.php from the theme template hierarchy. 2016-10-07 21:03:31 +00:00
template.php Themes: Use curly braces for variables inside strings in `get_page_template() to explicitly specify the end of the variable name. 2017-01-12 04:13:42 +00:00
theme.php Docs: After [37083], change "HEX format" to "3- or 6-digit hexadecimal form" for clarity. 2017-01-12 05:56:40 +00:00
update.php I18n: Introduce more translator comments for strings that contain placeholders but don't have an accompanying translator comment. 2016-11-21 02:46:30 +00:00
user.php General: Use interpolation instead of concatenation for all dynamic hook names. 2016-12-14 04:18:42 +00:00
vars.php Docs: Add and correct @since docs for a variety of functions and methods. 2016-12-27 09:21:44 +00:00
version.php REST API: Allow shortcircuiting rest_pre_insert_comment 2017-01-17 05:18:41 +00:00
widgets.php Widgets: In unregister_sidebar(), rename the $name parameter to $sidebar_id for consistency with is_registered_sidebar(). 2017-01-12 06:38:54 +00:00
wlwmanifest.xml
wp-db.php I18n: Begin introducing translator comments for strings which include placeholders but no accompanying translator comment. 2016-11-21 01:22:32 +00:00
wp-diff.php