WordPress/wp-includes
Adam Silverstein 0bcfc08b3f REST API: improve test fixture generation, normalizing data.
Add a data normalization pass when generating data fixtures for the REST API endpoints. Ensures that the `wp-api-generated.js` fixture won't change between test runs. Set more default properties and use fixed values for any properties that can't be easily controlled (object IDs and derivatives like link). Generate the fixture file with JSON_PRETTY_PRINT so that future diffs are easier to follow.

Props jnylen0, netweb.
Fixes #39264.

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


git-svn-id: http://core.svn.wordpress.org/trunk@39998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-02-15 17:59:42 +00:00
..
certificates
css Buttons: Fix a few .button-link glitches after [40052]. 2017-02-14 18:42:46 +00:00
customize Buttons: Improve the .button-link CSS class for link-like buttons. 2017-02-09 16:47:44 +00:00
fonts
ID3
images
IXR XML-RPC: Fix truncated warning message added in [38883]. 2016-10-29 21:32:33 +00:00
js Media: debounce the media grid search, avoiding duplicate requests. 2017-02-15 17:29:44 +00:00
pomo General: Correctly detect trailing newline when prepending. 2016-12-13 02:48:41 +00:00
random_compat
Requests
rest-api REST API: After [38947], improve the wording of the message to clarify that rest_authentication_errors is a filter. 2017-02-01 21:32:47 +00:00
SimplePie
Text
theme-compat
widgets
admin-bar.php Multisite: Show menu items in My Sites > Network Admin admin bar menu based on more precise capability checks. 2017-01-24 16:29:40 +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
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: Clarify that get_the_category_list() and the_category() display links as an unordered list by default. 2017-02-05 15:16:44 +00:00
category.php I18N: Merge similar strings in _deprecated_argument() calls. 2017-01-29 11:50:41 +00:00
class-feed.php Load: Re-add class-feed.php. 2016-12-03 03:30:42 +00:00
class-http.php
class-IXR.php
class-json.php
class-oembed.php Embeds: After [31148], list correct method in WP_oEmbed::$compat_methods. 2017-01-29 07:32:43 +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
class-requests.php
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 Menus: Prevent notice thrown in class-walker-page.php. 2017-01-24 23:29:42 +00:00
class-wp-admin-bar.php
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 Revert to pre-4.7 behavior for fetching object instances by id. 2017-01-26 16:53:41 +00:00
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 Customize: Extend auto-draft life of a customize_changeset post whenever modified. 2017-02-05 06:39:41 +00:00
class-wp-customize-nav-menus.php Customize: Always enqueue customize-preview stylesheet in the customizer preview to style selective refresh and visual edit shortcuts. 2017-01-26 03:47:41 +00:00
class-wp-customize-panel.php
class-wp-customize-section.php
class-wp-customize-setting.php Customize: Ensure root values are accessible in multidimensional custom setting types. 2017-02-01 01:40:52 +00:00
class-wp-customize-widgets.php Customize: Always enqueue customize-preview stylesheet in the customizer preview to style selective refresh and visual edit shortcuts. 2017-01-26 03:47:41 +00:00
class-wp-dependency.php
class-wp-editor.php TinyMCE: improve the previews for embedded WordPress posts: 2017-01-27 04:25:44 +00:00
class-wp-embed.php
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
class-wp-http-requests-response.php
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
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
class-wp-metadata-lazyloader.php
class-wp-network-query.php
class-wp-network.php
class-wp-oembed-controller.php
class-wp-post-type.php
class-wp-post.php Revert to pre-4.7 behavior for fetching object instances by id. 2017-01-26 16:53:41 +00:00
class-wp-query.php I18N: Merge similar strings in _deprecated_argument() calls. 2017-01-29 11:50:41 +00:00
class-wp-rewrite.php
class-wp-role.php
class-wp-roles.php
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
class-wp-site.php
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: Disallow overriding the name property when registering a taxonomy. 2017-02-06 19:39:42 +00:00
class-wp-term-query.php Docs: Add missing meta_type and meta_compare arguments to WP_Term_Query::__construct() and get_terms() docblocks. 2017-02-10 02:28:43 +00:00
class-wp-term.php Revert to pre-4.7 behavior for fetching object instances by id. 2017-01-26 16:53:41 +00:00
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
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
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
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
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
feed.php Feeds: Don't override the Content-Type header inside fetc_feed() 2017-01-05 03:06:42 +00:00
formatting.php Docs: After [39939], "locales" should be plural. 2017-01-21 17:26:41 +00:00
functions.php Media: In wp_unique_filename(), use explicit type casting when incrementing $number. 2017-02-03 20:58:42 +00:00
functions.wp-scripts.php
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
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 Buttons: Improve the .button-link CSS class for link-like buttons. 2017-02-09 16:47:44 +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
ms-blogs.php
ms-default-constants.php
ms-default-filters.php
ms-deprecated.php
ms-files.php
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
ms-settings.php
nav-menu-template.php
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 I18N: Merge similar strings in _deprecated_argument() calls. 2017-01-29 11:50:41 +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 Docs: Clarify that has_excerpt() checks if the post has a custom excerpt, not some generated excerpt. 2017-02-05 14:35:46 +00:00
post-thumbnail-template.php
post.php Pings/Trackbacks: Avoid scheduling multiple do_pings events in _publish_post_hook(). 2017-02-10 03:09:43 +00:00
query.php
registration-functions.php
registration.php
rest-api.php Docs: Use third-person singular verb for rest_avatar_sizes filter description. 2017-02-06 02:58:40 +00:00
revision.php
rewrite.php
rss-functions.php
rss.php
script-loader.php Update/Install: Give context to "Deleted! string to allow for differentiation between theme and plugin translations. 2017-01-31 09:59:40 +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: Add missing meta_type and meta_compare arguments to WP_Term_Query::__construct() and get_terms() docblocks. 2017-02-10 02:28:43 +00:00
template-loader.php
template.php Themes: Add template type and template candidates as parameters to the {$type}_template filter. 2017-02-12 21:25:42 +00:00
theme.php Docs: Use third-person singular verb for wp_get_custom_css filter description. 2017-02-06 02:57:42 +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: improve test fixture generation, normalizing data. 2017-02-15 17:59:42 +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