WordPress/wp-includes
audrasjb 8f5f8b19c5 Script Loader: Load block themes styles in the head section.
Previously, some logic was added to load the global stylesheet in the bottom of `<body>` for classic themes that opted-in into loading individual block styles instead of a single stylesheet for them all. At the time, block themes always loaded the global stylesheet in the `<head>`. When block themes landed in core during WordPress 5.9 this logic wasn’t updated to consider them, hence the global stylesheet loaded in the `<body>` for them. This changeset fixes this.

Props oandregal, aristath.
Fixes #55148.

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


git-svn-id: http://core.svn.wordpress.org/trunk@52327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-02-16 10:36:02 +00:00
..
assets Editor: Bump editor packages to include the latest fixes. 2022-01-24 15:57:28 +00:00
block-patterns
block-supports
blocks
certificates HTTP: Remove the DST Root CA X3 certificate expired on September 30, 2021. 2021-10-03 17:51:06 +00:00
css
customize Customizer: Remove Menus panel when a theme does not support menus 2022-01-24 05:34:04 +00:00
fonts
ID3 External Libraries: Update getID3 to version 1.9.21. 2021-11-26 03:06:03 +00:00
images
IXR
js Media: Display an error message in grid view if the attachment could not be deleted. 2022-02-14 14:21:05 +00:00
php-compat
PHPMailer
pomo Code Modernization: Use stream_get_contents() in POMO_FileReader::read_all(). 2022-02-09 12:33:05 +00:00
random_compat
Requests
rest-api
SimplePie External Libraries: Update the SimplePie library to version 1.5.7. 2021-12-20 19:33:00 +00:00
sitemaps
sodium_compat
Text Code Modernization: Use instanceof instead of a comparison with get_class(). 2020-10-18 17:33:07 +00:00
theme-compat
widgets
admin-bar.php
atomlib.php
author-template.php
block-editor.php Editor: Prevent front-end assets of a block from being enqueued in the block editor. 2022-02-15 17:30:02 +00:00
block-i18n.json
block-patterns.php
block-template-utils.php
block-template.php
blocks.php I18n: Standardize the script paths for blocks 2022-02-11 12:14:04 +00:00
bookmark-template.php General: Add "noopener" to wp_list_bookmarks() output. 2021-11-08 23:06:58 +00:00
bookmark.php
cache-compat.php Docs: Improve @return tags for wp_cache_*_multiple() functions: 2022-02-11 19:21:01 +00:00
cache.php
canonical.php Permalinks: Revert the changes stemming from pagination limits. 2021-06-08 23:32:56 +00:00
capabilities.php Users: Prevent infinite loop when using capability checks during determine_current_user on multisite. 2021-11-15 01:09:59 +00:00
category-template.php Docs: Various corrections and improvements relating to types used in inline documentation. 2021-11-18 13:50:05 +00:00
category.php Docs: Miscellaneous DocBlock corrections. 2020-07-23 21:55:04 +00:00
class-feed.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
class-http.php Coding Standards: Move wp-includes/class-http.php to wp-includes/class-wp-http.php. 2021-11-07 01:36:57 +00:00
class-IXR.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
class-json.php
class-oembed.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
class-phpass.php
class-phpmailer.php Mail: Make sure the PHPMailer class is only required once if a plugin requires wp-includes/class-phpmailer.php directly. 2020-07-21 12:58:02 +00:00
class-pop3.php
class-requests.php HTTP API: Revert changeset [52244]. 2021-12-06 21:30:03 +00:00
class-simplepie.php
class-smtp.php Mail: Make sure the SMTP class is only required once if a plugin requires wp-includes/class-smtp.php directly. 2021-01-26 13:45:57 +00:00
class-snoopy.php
class-walker-category-dropdown.php Docs: Increase the specificity of types in various inline documentation. 2022-01-30 19:25:03 +00:00
class-walker-category.php
class-walker-comment.php
class-walker-nav-menu.php Docs: Increase the specificity of types in various inline documentation. 2022-01-30 19:25:03 +00:00
class-walker-page-dropdown.php
class-walker-page.php
class-wp-admin-bar.php Editor: Fix how the Site Editor is linked to 2021-11-15 03:43:59 +00:00
class-wp-ajax-response.php Docs: Replace "html" and "xhtml" instances in DocBlocks and comments with "HTML" and "XHTML". 2020-06-28 14:02:06 +00:00
class-wp-application-passwords.php Application Passwords: Various docblock improvements. 2021-10-30 20:26:59 +00:00
class-wp-block-editor-context.php
class-wp-block-list.php Code Modernization: Silence the deprecation warnings for missing return type in WP_Block_List. 2021-08-03 11:12:55 +00:00
class-wp-block-parser.php
class-wp-block-pattern-categories-registry.php Docs: Improve the documentation for registering block patterns and block pattern categories. 2021-11-19 19:05:59 +00:00
class-wp-block-patterns-registry.php Docs: Various docblock corrections and improvements. 2021-11-23 21:37:01 +00:00
class-wp-block-styles-registry.php
class-wp-block-supports.php Docs: Various docblock corrections and improvements. 2021-11-23 21:37:01 +00:00
class-wp-block-template.php Editor: Explicitly declare $post_types and $area properties in WP_Block_Template class. 2021-12-21 00:28:00 +00:00
class-wp-block-type-registry.php
class-wp-block-type.php
class-wp-block.php
class-wp-comment-query.php Cache: Use wp_cache_*_multiple() in core functions. 2022-02-11 18:51:59 +00:00
class-wp-comment.php Docs: Promote many bool types to true or false where only that value is used. 2021-01-03 22:04:04 +00:00
class-wp-customize-control.php Coding Standards: Escape id attributes in WP_Customize_Control::render_content() and ::print_template(). 2021-10-22 16:09:59 +00:00
class-wp-customize-manager.php Docs: Replace "Current theme" with "Active theme" in various DocBlocks. 2022-01-20 23:53:05 +00:00
class-wp-customize-nav-menus.php
class-wp-customize-panel.php
class-wp-customize-section.php Docs: Update some @var tags per the documentation standards. 2021-12-11 19:50:59 +00:00
class-wp-customize-setting.php
class-wp-customize-widgets.php Customizer: Remove Widgets panel when a theme does not support widgets 2022-01-24 05:37:01 +00:00
class-wp-date-query.php Docs: Increase the specificity of types in various inline documentation. 2022-01-30 19:25:03 +00:00
class-wp-dependency.php Docs: Various corrections to inline docblocks. 2020-07-23 00:48:06 +00:00
class-wp-editor.php
class-wp-embed.php External Libraries: Further fix jQuery deprecations in WordPress core. 2021-11-30 17:18:01 +00:00
class-wp-error.php
class-wp-fatal-error-handler.php
class-wp-feed-cache-transient.php
class-wp-feed-cache.php
class-wp-hook.php Plugins: Correct the documented allowable types for to the $callback parameter of various hook related functions. 2021-12-01 13:22:01 +00:00
class-wp-http-cookie.php Docs: Miscellaneous docblock corrections and improvements. 2021-09-22 21:23:00 +00:00
class-wp-http-curl.php Coding Standards: Move wp-includes/class-http.php to wp-includes/class-wp-http.php. 2021-11-07 01:36:57 +00:00
class-wp-http-encoding.php
class-wp-http-ixr-client.php Coding Standards: Use strict comparison in wp-includes/class-wp-http-ixr-client.php. 2021-10-01 15:00:58 +00:00
class-wp-http-proxy.php
class-wp-http-requests-hooks.php
class-wp-http-requests-response.php
class-wp-http-response.php Coding Standards: Fix/ignore the WordPress.NamingConventions.ValidFunctionName violations. 2019-07-01 08:01:57 +00:00
class-wp-http-streams.php Docs: Typo corrections in various API docblocks. 2022-02-04 16:28:00 +00:00
class-wp-http.php Docs: Fix typos in some DocBlocks. 2022-01-18 20:29:06 +00:00
class-wp-image-editor-gd.php Build/Test Tools: Update PHPCompatibilityWP to version 2.1.3. 2021-12-31 13:55:03 +00:00
class-wp-image-editor-imagick.php
class-wp-image-editor.php
class-wp-list-util.php Docs: Increase the specificity of types in various inline documentation. 2022-01-30 19:25:03 +00:00
class-wp-locale-switcher.php I18N: Revert [49236] for now to investigate alternative implementations. 2020-11-12 14:43:09 +00:00
class-wp-locale.php
class-wp-matchesmapregex.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:15:13 +00:00
class-wp-meta-query.php
class-wp-metadata-lazyloader.php
class-wp-network-query.php
class-wp-network.php Docs: Promote many bool types to true or false where only that value is used. 2021-01-03 22:04:04 +00:00
class-wp-object-cache.php Docs: Improve @return tags for wp_cache_*_multiple() functions: 2022-02-11 19:21:01 +00:00
class-wp-oembed-controller.php
class-wp-oembed.php Embeds: Add Wolfram Notebook as a trusted oEmbed provider. 2021-10-15 05:04:56 +00:00
class-wp-paused-extensions-storage.php
class-wp-post-type.php
class-wp-post.php
class-wp-query.php
class-wp-recovery-mode-cookie-service.php Docs: Consistently use third-person singular verbs for various filter descriptions, per the documentation standards. 2020-08-11 00:34:08 +00:00
class-wp-recovery-mode-email-service.php Administration: Replace "Current theme" with "Active theme" in user facing strings. 2022-01-15 08:44:03 +00:00
class-wp-recovery-mode-key-service.php
class-wp-recovery-mode-link-service.php Docs: Document the usage of $pagenow global in a few functions. 2021-02-22 19:18:12 +00:00
class-wp-recovery-mode.php Docs: Consistently use third-person singular verbs for various filter descriptions, per the documentation standards. 2020-08-11 00:34:08 +00:00
class-wp-rewrite.php
class-wp-role.php
class-wp-roles.php
class-wp-session-tokens.php
class-wp-simplepie-file.php
class-wp-simplepie-sanitize-kses.php
class-wp-site-query.php Query: Correct and standardise the meta query documentation. 2021-11-20 00:07:59 +00:00
class-wp-site.php
class-wp-tax-query.php
class-wp-taxonomy.php
class-wp-term-query.php
class-wp-term.php
class-wp-text-diff-renderer-inline.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-text-diff-renderer-table.php Docs: Typo corrections in various API docblocks. 2022-02-04 16:28:00 +00:00
class-wp-theme-json-resolver.php
class-wp-theme-json-schema.php
class-wp-theme-json.php Docs: Typo correction in class-wp-theme-json docblocks. 2022-02-08 16:11:03 +00:00
class-wp-theme.php
class-wp-user-meta-session-tokens.php
class-wp-user-query.php
class-wp-user-request.php Docs: Add missing @since tags for WP_User_Request properties. 2020-03-23 20:20:09 +00:00
class-wp-user.php Docs: Miscellaneous docblock corrections and improvements. 2021-09-22 21:23:00 +00:00
class-wp-walker.php
class-wp-widget-factory.php
class-wp-widget.php
class-wp-xmlrpc-server.php XML-RPC: Fix typos in some XMLRPC related docblocks. 2022-01-14 14:45:05 +00:00
class-wp.php
class.wp-dependencies.php Coding Standards: Replace else if with elseif after [52338]. 2021-12-07 17:49:01 +00:00
class.wp-scripts.php Docs: Replace "Current theme" with "Active theme" in various DocBlocks. 2022-01-20 23:53:05 +00:00
class.wp-styles.php
comment-template.php Comments: Fix PHP Notice "trying to get property of non-object" in comments_open() and pings_open(). 2021-11-19 20:24:00 +00:00
comment.php Cache: Use wp_cache_*_multiple() in core functions. 2022-02-11 18:51:59 +00:00
compat.php Build/Test Tools: Update PHPCompatibilityWP to version 2.1.3. 2021-12-31 13:55:03 +00:00
cron.php Docs: Various docblock corrections and improvements. 2021-11-23 21:37:01 +00:00
date.php
default-constants.php
default-filters.php Editor: Explicitly load remote block patterns in the block and site editor screens. 2022-01-17 22:42:03 +00:00
default-widgets.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00
deprecated.php
embed-template.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
embed.php
error-protection.php Docs: Add more information about how to use filters that run before WordPress initialises. 2020-11-03 17:36:09 +00:00
feed-atom-comments.php
feed-atom.php Feeds: Remove reference to wp-atom.php in Atom feeds xml:base attribute. 2021-11-29 09:52:00 +00:00
feed-rdf.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
feed-rss2-comments.php Docs: Use more appropriate variable names in the inline docs for action and filter parameters. 2020-07-23 19:06:03 +00:00
feed-rss2.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
feed-rss.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
feed.php Docs: Miscellaneous DocBlock corrections. 2021-05-15 17:38:05 +00:00
formatting.php Docs: Update spelling for inline comments in a few files. 2022-01-25 13:55:05 +00:00
functions.php Docs: Fix typo in a comment in wp_get_image_mime(). 2022-02-12 14:45:00 +00:00
functions.wp-scripts.php
functions.wp-styles.php
general-template.php Administration: Add "File" to Theme/Plugin Editor menu names and relocate "Plugin File Editor" to Tools for block themes. 2021-12-21 20:06:02 +00:00
global-styles-and-settings.php Coding Standards: Use strict type check for in_array() in wp_get_global_stylesheet(). 2022-02-04 14:18:59 +00:00
http.php Docs: Correct description for two HTTP API functions: 2022-01-13 01:04:01 +00:00
https-detection.php
https-migration.php Security, Site Health: Make migrating a site to HTTPS a one-click interaction. 2021-02-02 00:10:01 +00:00
kses.php
l10n.php Docs: Typo correction in wp_dropdown_languages() DocBlock. 2021-12-20 22:26:02 +00:00
link-template.php
load.php Application Passwords: Show HTTPS required message without filtering when not enabled or not in local environment. 2021-12-21 02:45:03 +00:00
locale.php
media-template.php
media.php Media: Display an error message in grid view if the attachment could not be deleted. 2022-02-14 14:21:05 +00:00
meta.php Cache: Use wp_cache_*_multiple() in core functions. 2022-02-11 18:51:59 +00:00
ms-blogs.php Docs: Fix and upgrade various object docblock notations. 2020-10-17 16:05:09 +00:00
ms-default-constants.php Code Modernization: Check the return type of parse_url() in ms_cookie_constants(). 2021-08-17 22:08:57 +00:00
ms-default-filters.php
ms-deprecated.php
ms-files.php
ms-functions.php Networks and Sites: Remove unnecessary commented code from remove_user_from_blog(). 2022-02-15 21:21:00 +00:00
ms-load.php
ms-network.php Cache: Use wp_cache_*_multiple() in core functions. 2022-02-11 18:51:59 +00:00
ms-settings.php
ms-site.php
nav-menu-template.php Coding Standards: Rename $r variable to $args for clarity in walk_nav_menu_tree(). 2022-02-07 14:01:05 +00:00
nav-menu.php
option.php
pluggable-deprecated.php
pluggable.php Docs: Miscellaneous inline documentation improvements. 2021-12-29 17:28:00 +00:00
plugin.php
post-formats.php
post-template.php Coding Standards: Rename $r variable to $args for clarity in walk_page_tree(). 2022-02-07 14:21:01 +00:00
post-thumbnail-template.php Media: Add a missing / in post thumbnail lazy loading regex. 2022-01-14 11:02:06 +00:00
post.php Cache: Use wp_cache_*_multiple() in core functions. 2022-02-11 18:51:59 +00:00
query.php
registration-functions.php Coding Standards: Pass an empty string instead of null as the $replacement parameter to _deprecated_file(). 2020-11-12 11:17:07 +00:00
registration.php Coding Standards: Pass an empty string instead of null as the $replacement parameter to _deprecated_file(). 2020-11-12 11:17:07 +00:00
rest-api.php
revision.php
rewrite.php
robots-template.php Robots: Remove contradictory directive check in wp_robots(). 2021-03-23 23:02:05 +00:00
rss-functions.php
rss.php
script-loader.php
session.php Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant. 2020-02-06 06:33:11 +00:00
shortcodes.php Coding Standards: Remove a one-time $message variable in some _doing_it_wrong() calls. 2021-06-15 15:22:58 +00:00
sitemaps.php Docs: Miscellaneous DocBlock corrections. 2021-05-15 17:38:05 +00:00
spl-autoload-compat.php Coding Standards: Pass an empty string instead of null as the $replacement parameter to _deprecated_file(). 2020-11-12 11:17:07 +00:00
taxonomy.php Cache: Use wp_cache_*_multiple() in core functions. 2022-02-11 18:51:59 +00:00
template-canvas.php Docs: Correct the format of some comments per the documentation standards. 2021-12-10 20:30:05 +00:00
template-loader.php
template.php
theme-i18n.json
theme-templates.php Themes: Auto-enable block-templates support for all block themes. 2021-12-09 09:56:04 +00:00
theme.json
theme.php Docs: Replace "Current theme" with "Active theme" in various DocBlocks. 2022-01-20 23:53:05 +00:00
update.php
user.php
vars.php
version.php Script Loader: Load block themes styles in the head section. 2022-02-16 10:36:02 +00:00
widgets.php
wlwmanifest.xml The Pinking Shears stir from their slumber, awakened by what may seem, to those 2013-12-11 19:49:11 +00:00
wp-db.php
wp-diff.php