WordPress/wp-includes
desrosj 5bafb4ea2d Site Health: Improve the test badge implementation.
Label badges for each Site Health test currently display in either red, orange, or green, regardless of if the test passed or failed. This is confusing, as seeing red labels in the “Passed Test” section could alarm users (when really everything is OK and no action is required), and seeing green labels in the “Failed Tests” section would not appropriately encourage the user to take appropriate action.

This change makes several improvements to the label badges:

- Always right align the badges for consistent display.
- Remove background fill for badges. Instead, use a border.
- Use a consistent styling for all tests (passed and failed).
- The text color no longer uses true black (#000000).
- The `.badge.pink` CSS definition has been switched to `.badge.purple`, and the definitions for blue, gray, and green have also been updated to more closely follow the official WordPress color palette.

Props: pbiron, garrett-eclipse, hedgefield, Clorith, xkon, melchoyce, mdwolinski, alexdenning.
Fixes #46623.
Built from https://develop.svn.wordpress.org/trunk@45169


git-svn-id: http://core.svn.wordpress.org/trunk@44978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-04-12 17:04:52 +00:00
..
blocks Accessibility: Remove post format filter links from format icons in the Posts list table. 2019-03-21 15:32:01 +00:00
certificates
css UI: Remove vertical alignment from active primary buttons. 2019-04-09 00:16:53 +00:00
customize Accessibility: Replace media placeholder clickable divs with buttons. 2019-03-05 17:49:52 +00:00
fonts Administration: Fix Dashicon backwards compatibility issues. 2019-03-27 19:59:52 +00:00
ID3
images Build: Update images following [43684]. 2018-12-19 03:36:27 +00:00
IXR Docs: Fix typo in xmlrpc_chunk_parsing_size filter description. 2019-03-28 16:53:51 +00:00
js Media: Update the media bulk action labels for consistency. 2019-04-08 23:54:52 +00:00
pomo Docs: Correct the docs for POMO_Reader::setEndian(). 2019-01-16 05:36:48 +00:00
random_compat
Requests
rest-api REST API: Avoid undefined-property notice when setting parent term to 0. 2019-03-21 18:59:52 +00:00
SimplePie
sodium_compat General: Add sodium_compat library for crypto APIs in PHP < 7.2 2019-03-21 04:56:52 +00:00
Text
theme-compat Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
widgets Widgets: Add rel="noopener noreferrer" to links with target="_blank" in the Image widget. 2019-04-08 23:23:51 +00:00
admin-bar.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
atomlib.php
author-template.php Docs: Correct parameter types for the_author(), get_the_author_meta(), and the_author_meta(). 2019-04-01 14:23:53 +00:00
blocks.php General: Fix a typo in the docs for _restore_wpautop_hook(). 2019-04-11 17:27:52 +00:00
bookmark-template.php Docs: Remove duplicate docblocks for the pre_user_login and link_category filters. 2019-01-16 05:29:49 +00:00
bookmark.php General: Fix problematic string to array parsing. 2019-01-10 21:06:49 +00:00
cache.php Docs: Correct type for WP_Object_Cache::$blog_prefix. 2019-04-11 20:10:53 +00:00
canonical.php Canonical: Ensure redirect query keys are URL encoded. 2019-04-08 01:10:55 +00:00
capabilities.php I18N: Move the strings for default user roles to wp-includes/capabilities.php, to make the translations available on the front end as well. 2019-03-21 22:23:52 +00:00
category-template.php Coding Standards: Remove an unnecessary line whitelisting. 2019-01-12 04:53:51 +00:00
category.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-feed.php
class-http.php HTTP: Add support for the host-only flag to Wp_Http_Cookie. 2019-04-08 05:32:51 +00:00
class-IXR.php
class-json.php Docs: Correct various spelling mistakes. 2019-03-13 19:32:53 +00:00
class-oembed.php Embeds: Update the Crowdsignal embed handler so that surveys on subdomains are supported. 2019-03-28 21:27:51 +00:00
class-phpass.php
class-phpmailer.php
class-pop3.php
class-requests.php
class-simplepie.php
class-smtp.php Docs: Correct various spelling mistakes. 2019-03-13 19:32:53 +00:00
class-snoopy.php
class-walker-category-dropdown.php
class-walker-category.php Accessibility: Introduce category_list_link_attributes filter in Walker_Category::start_el() for the HTML attributes applied to a category list item's anchor element. 2019-03-21 10:37:57 +00:00
class-walker-comment.php Comments: Update the message shown when a comment is awaiting moderation. 2019-01-21 22:46:49 +00:00
class-walker-nav-menu.php Menus: Add rel="noopener" to target="_blank" links by default in menus. 2019-04-08 23:06:52 +00:00
class-walker-page-dropdown.php Docs: Correctly specify the $page parameter of list_pages filter as a WP_Post. 2018-12-20 20:04:50 +00:00
class-walker-page.php Menus: Use esc_url() for the href value of page link attributes in Walker_Page::start_el(), for consistency with Walker_Nav_Menu and Walker_Category. 2019-03-21 10:45:51 +00:00
class-wp-admin-bar.php Bootstrap/Load: Introduce a recovery mode for fixing fatal errors. 2019-03-21 21:53:51 +00:00
class-wp-ajax-response.php
class-wp-block-parser.php Block Editor: Update WordPress Packages to solve PHP 5.2.2 parser incompatibility. 2019-02-07 09:02:49 +00:00
class-wp-block-type-registry.php Blocks: Introduce WP_Block_Type and WP_Block_Type_Registry classes. 2018-12-13 09:44:23 +00:00
class-wp-block-type.php REST API: Preserve unknown, respect null in server-side block rendering. 2018-12-17 18:00:52 +00:00
class-wp-comment-query.php Coding Standards: Fix and whitelist variable names. 2019-01-12 06:06:48 +00:00
class-wp-comment.php
class-wp-customize-control.php
class-wp-customize-manager.php Customize: Add a link to theme reviews in the theme details modal in the Customizer and on Add Themes screen. 2019-03-21 22:02:51 +00:00
class-wp-customize-nav-menus.php Customizer: Remove a line of commented-out code in WP_Customize_Nav_Menus::customize_register(). 2018-12-19 07:23:47 +00:00
class-wp-customize-panel.php
class-wp-customize-section.php
class-wp-customize-setting.php
class-wp-customize-widgets.php Accessibility: Customize: Improve the widgets search and the widget Remove button. 2019-03-09 12:56:54 +00:00
class-wp-dependency.php Docs: Add missing documentation for _WP_Dependency::set_translations(). 2019-01-15 22:48:51 +00:00
class-wp-editor.php TinyMCE: 2019-03-29 00:49:51 +00:00
class-wp-embed.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-error.php Docs: Update since annotations WP_Error::has_errors() 2019-01-09 22:42:51 +00:00
class-wp-fatal-error-handler.php Bootstrap/Load: Ensure WP_Fatal_Error_Handler does not conflict with existing mechanisms treating fatal errors. 2019-04-05 15:20:55 +00:00
class-wp-feed-cache-transient.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-feed-cache.php
class-wp-hook.php
class-wp-http-cookie.php HTTP: Add support for the host-only flag to Wp_Http_Cookie. 2019-04-08 05:32:51 +00:00
class-wp-http-curl.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
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 HTTP: Add support for the host-only flag to Wp_Http_Cookie. 2019-04-08 05:32:51 +00:00
class-wp-http-response.php
class-wp-http-streams.php Docs: Update since annotation for new $url parameter for several HTTP related filters. 2019-01-04 21:58:51 +00:00
class-wp-image-editor-gd.php Docs: Add missing periods to param annotations for flip() in WP_Image_Editor_GD. 2019-01-10 22:10:50 +00:00
class-wp-image-editor-imagick.php
class-wp-image-editor.php
class-wp-list-util.php General: Allow wp_list_pluck() to operate on arrays of references without overwriting the referenced items. 2018-01-18 05:18:31 +00:00
class-wp-locale-switcher.php REST API: Render response in user locale with ?_locale=user. 2018-12-14 01:32:39 +00:00
class-wp-locale.php Bootstrap/Load: Restore $wp_version global check in WP_Locale::init(), previously replaced with get_bloginfo( 'version' ) in [38459]. 2019-03-27 13:27:52 +00:00
class-wp-matchesmapregex.php
class-wp-meta-query.php Docs: Update since annotations for adding LIKE comparisons with meta keys. 2019-01-09 14:55:49 +00:00
class-wp-metadata-lazyloader.php
class-wp-network-query.php Multisite: add new sites_pre_query and networks_pre_query filters to short circuit WP_Site_Query and WP_Network_Query queries. 2019-03-22 17:26:51 +00:00
class-wp-network.php
class-wp-oembed-controller.php Embeds: Filter HTML response in oEmbed proxy controller. 2018-12-14 03:20:37 +00:00
class-wp-paused-extensions-storage.php Bootstrap/Load: Introduce a recovery mode for fixing fatal errors. 2019-03-21 21:53:51 +00:00
class-wp-post-type.php
class-wp-post.php Coding Standards: Use strict comparison in WP_Post where possible. 2019-03-15 21:55:50 +00:00
class-wp-query.php Privacy: Introduce Privacy Policy page helpers: 2019-03-21 19:48:50 +00:00
class-wp-recovery-mode-cookie-service.php Bootstrap/Load: Introduce a recovery mode for fixing fatal errors. 2019-03-21 21:53:51 +00:00
class-wp-recovery-mode-email-service.php Administration: Fix typo in fatal error email notification. 2019-03-30 18:54:51 +00:00
class-wp-recovery-mode-key-service.php Bootstrap/Load: Introduce a recovery mode for fixing fatal errors. 2019-03-21 21:53:51 +00:00
class-wp-recovery-mode-link-service.php Bootstrap/Load: Introduce a recovery mode for fixing fatal errors. 2019-03-21 21:53:51 +00:00
class-wp-recovery-mode.php Administration: Improve user experience and clarify when in recovery mode. 2019-04-05 17:00:52 +00:00
class-wp-rewrite.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-role.php
class-wp-roles.php
class-wp-session-tokens.php Docs: Correct and improve docblocks for user session management functionality. 2018-09-14 13:45:26 +00:00
class-wp-simplepie-file.php
class-wp-simplepie-sanitize-kses.php
class-wp-site-query.php Multisite: add new sites_pre_query and networks_pre_query filters to short circuit WP_Site_Query and WP_Network_Query queries. 2019-03-22 17:26:51 +00:00
class-wp-site.php
class-wp-tax-query.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-taxonomy.php Taxonomy: Update @since annotations for meta_box_sanitize_cb arg. 2019-01-09 15:11:48 +00:00
class-wp-term-query.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-term.php
class-wp-text-diff-renderer-inline.php
class-wp-text-diff-renderer-table.php Coding Standards: Fix the Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace violations. 2019-01-11 06:40:50 +00:00
class-wp-theme.php Themes: Link to an updated documentation on child themes on developer.wordpress.org, instead of Codex. 2019-04-01 11:55:52 +00:00
class-wp-user-meta-session-tokens.php Docs: Add @see WP_Session_Tokens to the WP_User_Meta_Session_Tokens docblock. 2019-01-09 05:04:50 +00:00
class-wp-user-query.php Docs: Correct @since tag for users_pre_query filter added in [44373]. 2019-01-07 07:56:50 +00:00
class-wp-user.php Users: Add LIMIT 1 to SQL query in WP_User::get_data_by(), as only one row is requested. 2018-09-23 15:33:24 +00:00
class-wp-walker.php
class-wp-widget-factory.php
class-wp-widget.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-xmlrpc-server.php I18N: Merge similar strings about allowed space allocation in Multisite. 2019-04-01 12:24:51 +00:00
class-wp.php Multisite: Validate activation links. 2018-12-13 01:26:24 +00:00
class.wp-dependencies.php Docs: Document that the $src parameter of WP_Dependencies::add() can be boolean. 2018-09-28 21:51:24 +00:00
class.wp-scripts.php I18N/Script Loader: Support text domains other than "messages". 2019-01-06 16:23:49 +00:00
class.wp-styles.php Script/Style Dependencies: Simplify some logic in WP_Styles::do_item(). 2018-08-11 17:42:24 +00:00
comment-template.php Docs: Correct various spelling mistakes. 2019-03-13 19:32:53 +00:00
comment.php PHPCS: Remove extra tabs added in [44970]. 2019-03-21 21:36:51 +00:00
compat.php General: Add sodium_compat library for crypto APIs in PHP < 7.2 2019-03-21 04:56:52 +00:00
cron.php Cron: Ensure identical single events aren't scheduled less than 10min apart. 2019-03-16 06:42:50 +00:00
date.php
default-constants.php Site health: 2019-04-02 23:33:53 +00:00
default-filters.php Bootstrap/Load: Introduce a recovery mode for fixing fatal errors. 2019-03-21 21:53:51 +00:00
default-widgets.php
deprecated.php Replace usages of basename() with wp_basename() in order to support multibyte filenames 2019-03-01 20:58:52 +00:00
embed-template.php
embed.php Docs: Correct the documentation for the oEmbed HTML filtering. 2019-03-27 17:14:52 +00:00
error-protection.php Bootstrap/Load: Introduce a recovery mode for fixing fatal errors. 2019-03-21 21:53:51 +00:00
feed-atom-comments.php Feeds: ensure build/update date matches current query. 2019-03-20 20:39:00 +00:00
feed-atom.php Feeds: ensure build/update date matches current query. 2019-03-20 20:39:00 +00:00
feed-rdf.php Feeds: ensure build/update date matches current query. 2019-03-20 20:39:00 +00:00
feed-rss2-comments.php Feeds: ensure build/update date matches current query. 2019-03-20 20:39:00 +00:00
feed-rss2.php Feeds: ensure build/update date matches current query. 2019-03-20 20:39:00 +00:00
feed-rss.php Feeds: ensure build/update date matches current query. 2019-03-20 20:39:00 +00:00
feed.php Feeds: ensure build/update date matches current query. 2019-03-20 20:39:00 +00:00
formatting.php Docs: Add missing @since tags for wp_targeted_link_rel() and wp_targeted_link_rel_callback(). 2019-04-11 21:16:51 +00:00
functions.php Text Changes: Tweak the wording of email notification subjects. 2019-04-08 06:17:51 +00:00
functions.wp-scripts.php I18N: Make domain argument optional in wp_set_script_translations() / WP_Scripts::set_translations(). 2019-01-04 21:12:50 +00:00
functions.wp-styles.php Docs: Fix typo in wp_add_inline_script() and wp_add_inline_style() description. 2018-12-20 02:42:48 +00:00
general-template.php Emoji: Update Twemoji to version 12.0.0. 2019-04-08 05:22:51 +00:00
http.php HTTP: Don't treat localhost as same host by default. 2018-04-03 15:00:31 +00:00
kses.php Docs: Update since annotation for text-transform support in safecss_filter_attr(). 2019-01-10 01:43:49 +00:00
l10n.php I18N: Add $domain argument to translate_user_role(). 2019-03-11 20:32:52 +00:00
link-template.php Docs: Correct back-compat reference to $excluded_categories in get_adjacent_post(). 2019-03-27 14:45:51 +00:00
load.php Bootstrap/Load: Do not redefine constants because tests don't like it. 2019-04-05 15:53:50 +00:00
locale.php
media-template.php Media: Remove an extra verb context missed in [45147]. 2019-04-09 03:59:51 +00:00
media.php Media: Update the media bulk action labels for consistency. 2019-04-08 23:54:52 +00:00
meta.php Options, Meta APIs: Ensure the $object_id parameter passed to the delete_{$meta_type}_meta and deleted_{$meta_type}_meta filters is always an integer. 2019-03-28 21:59:52 +00:00
ms-blogs.php Multisite: Do not prime site meta caches unless necessary. 2019-03-18 15:56:51 +00:00
ms-default-constants.php
ms-default-filters.php Multisite: Move site-specific metadata integrations from the wrapper functions to the low-level Meta API functions. 2019-01-08 08:48:48 +00:00
ms-deprecated.php Multisite: Update @since tags for site management APIs. 2019-01-08 08:58:49 +00:00
ms-files.php
ms-functions.php Text Changes: Tweak the wording of email notification subjects. 2019-04-08 06:17:51 +00:00
ms-load.php Networks and Sites: Use numbered placeholder in a mailto: link in ms_site_check(). 2019-04-11 20:15:52 +00:00
ms-network.php Multisite: Introduce ms-site.php and ms-network.php files. 2019-01-08 09:15:49 +00:00
ms-settings.php
ms-site.php Multisite: Ensure site meta caches are not primed unless the wp_blogmeta table is available. 2019-03-18 15:49:00 +00:00
nav-menu-template.php Privacy: Introduce Privacy Policy page helpers: 2019-03-21 19:48:50 +00:00
nav-menu.php Nav Menus: Fix a PHP 7.3 error when switching themes. 2018-12-14 05:16:52 +00:00
option.php Options: Avoid unnecessary DB calls when updating network options. 2019-01-21 04:27:51 +00:00
pluggable-deprecated.php
pluggable.php Text Changes: Tweak the wording of email notification subjects. 2019-04-08 06:17:51 +00:00
plugin.php
post-formats.php Post Formats: Don't assign a variable inside if statement in get_post_format(). 2018-08-30 09:01:25 +00:00
post-template.php Customize: Only add custom-background to body_class() if the current theme supports custom background. 2019-04-01 16:18:52 +00:00
post-thumbnail-template.php Media: Introduce the has_post_thumbnail filter. 2019-01-10 15:28:50 +00:00
post.php Replace usages of basename() with wp_basename() in order to support multibyte filenames 2019-03-01 20:58:52 +00:00
query.php Privacy: Introduce Privacy Policy page helpers: 2019-03-21 19:48:50 +00:00
registration-functions.php
registration.php
rest-api.php REST API: Ensure "Allow" header is returned for OPTIONS requests. 2019-03-19 03:22:51 +00:00
revision.php Posts: Set a HTTP 403 error when an incorrect post preview nonce is sent. 2019-01-16 03:54:50 +00:00
rewrite.php
rss-functions.php
rss.php
script-loader.php Site Health: Ensure Site Health pages are correctly displayed for RTL locales. 2019-04-12 16:39:52 +00:00
session.php
shortcodes.php Docs: Correct parameter name in strip_shortcodes_tagnames filter DocBlock. 2018-08-02 15:13:27 +00:00
spl-autoload-compat.php
taxonomy.php Docs: Correct various spelling mistakes. 2019-03-13 19:32:53 +00:00
template-loader.php Privacy: Introduce Privacy Policy page helpers: 2019-03-21 19:48:50 +00:00
template.php Privacy: Introduce Privacy Policy page helpers: 2019-03-21 19:48:50 +00:00
theme.php Bootstrap/Load: Remove extension from the list of paused extensions when it is deactivated. 2019-04-05 15:33:52 +00:00
update.php Docs: Add documentation for the wp_maybe_auto_update action. 2019-01-16 03:38:49 +00:00
user.php Text Changes: Tweak the wording of email notification subjects. 2019-04-08 06:17:51 +00:00
vars.php
version.php Site Health: Improve the test badge implementation. 2019-04-12 17:04:52 +00:00
widgets.php Docs: Improve documentation of the `$wp_registered_sidebars global. 2019-01-14 23:01:49 +00:00
wlwmanifest.xml
wp-db.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
wp-diff.php