WordPress/wp-includes
hellofromTonya ab9c4659ae Editor: Fix render_duotone_support() to be compatible with enhanced pagination.
Some blocks do not have content. For duotone support, blocks without content still need to run through the `render_duotone_support()` to render their duotone CSS.

This fix makes the duotone compatible with the enhanced pagination (introduced in 6.4.0) by making sure that the CSS is always on the page, even when the posts have no featured image. It also prevents the duotone from interfering with other blocks using `wp_unique_id()`.


References:
* [https://github.com/WordPress/gutenberg/pull/55415 Gutenberg PR 55415]

Follow-up to [56226].

Props cbravobernal, luisherranz, hellofromTonya, isabel_brison, jorbin.
Fixes #59694.
Built from https://develop.svn.wordpress.org/trunk@56991


git-svn-id: http://core.svn.wordpress.org/trunk@56502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-23 23:39:20 +00:00
..
assets Update editor related npm packages for 6.4 RC2. 2023-10-23 17:08:31 +00:00
block-patterns
block-supports Editor: Add further test coverage for wp_render_elements_support(). 2023-10-11 15:15:30 +00:00
blocks Update editor related npm packages for 6.4 RC2. 2023-10-23 17:08:31 +00:00
certificates
css Editor: Bugfixes npm packages updates for 6.4 RC1. 2023-10-17 16:08:23 +00:00
customize Script Loader: Use wp_get_script_tag() and wp_get_inline_script_tag()/wp_print_inline_script_tag() helper functions to output scripts on the frontend and login screen. 2023-09-25 21:05:21 +00:00
fonts Fonts: Get font-family name from 'fontFamily' field. 2023-09-25 21:29:17 +00:00
html-api HTML API: Scan to end of tag when getting updated HTML output. 2023-10-17 10:39:27 +00:00
ID3 External Libraries: Update getID3 to version 1.9.23. 2023-10-20 13:29:27 +00:00
images
IXR
js Update editor related npm packages for 6.4 RC2. 2023-10-23 17:08:31 +00:00
php-compat
PHPMailer
pomo
Requests Prevent unintended behavior when certain objects are unserialized. 2023-10-12 12:34:33 +00:00
rest-api General: Remove discouraged @return void annotations. 2023-10-16 15:17:23 +00:00
SimplePie
sitemaps Sitemaps: add lastmod for individual posts and the homepage. 2023-10-23 15:42:22 +00:00
sodium_compat
style-engine
Text
theme-compat
widgets Script Loader: Harden removal of script tag wrappers. 2023-09-29 19:47:21 +00:00
admin-bar.php Toolbar: Link to Learn WordPress in the WordPress Logo menu. 2023-09-26 16:29:20 +00:00
atomlib.php
author-template.php
block-editor.php Editor: Remove 'wp-edit-site' stylesheet enqueue from iframe. 2023-09-27 17:40:20 +00:00
block-i18n.json
block-patterns.php Themes: Make caches for block patterns clearable. 2023-10-20 19:08:21 +00:00
block-template-utils.php Patterns, Templates: Inject theme attr into Template Part blocks. 2023-10-17 15:48:23 +00:00
block-template.php
blocks.php Blocks: During traversal, allow post callback to modify block. 2023-10-18 19:32:23 +00:00
bookmark-template.php
bookmark.php
cache-compat.php
cache.php
canonical.php Coding Standards: Remove redundant ignore annotations. 2023-09-28 00:04:24 +00:00
capabilities.php
category-template.php Coding Standards: Upgrade WPCS to version 3.0.0. 2023-09-26 00:27:12 +00:00
category.php
class-feed.php
class-http.php
class-IXR.php
class-json.php
class-oembed.php
class-phpass.php
class-phpmailer.php
class-pop3.php
class-requests.php
class-simplepie.php
class-smtp.php
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
class-wp-admin-bar.php
class-wp-ajax-response.php
class-wp-application-passwords.php
class-wp-block-editor-context.php
class-wp-block-list.php Code Modernization: Update parameter names in the WP_Block_List class. 2023-10-09 11:23:28 +00:00
class-wp-block-parser-block.php
class-wp-block-parser-frame.php
class-wp-block-parser.php Update editor related npm packages for 6.4 RC1. 2023-10-16 19:17:19 +00:00
class-wp-block-pattern-categories-registry.php
class-wp-block-patterns-registry.php Patterns, Templates: Inject theme attr into Template Part blocks. 2023-10-17 15:48:23 +00:00
class-wp-block-styles-registry.php
class-wp-block-supports.php Editor: Replace property_exists calls in block related functions with instanceof 2023-09-29 10:20:30 +00:00
class-wp-block-template.php
class-wp-block-type-registry.php Prevent unintended behavior when certain objects are unserialized. 2023-10-12 12:34:33 +00:00
class-wp-block-type.php
class-wp-block.php
class-wp-classic-to-block-menu-converter.php
class-wp-comment-query.php
class-wp-comment.php
class-wp-customize-control.php
class-wp-customize-manager.php Customize: Harden and modernize URL manipulation in WP_Customize_Manager::remove_frameless_preview_messenger_channel(). 2023-09-29 21:39:25 +00:00
class-wp-customize-nav-menus.php Script Loader: Use wp_get_script_tag() and wp_get_inline_script_tag()/wp_print_inline_script_tag() helper functions to output scripts on the frontend and login screen. 2023-09-25 21:05:21 +00:00
class-wp-customize-panel.php
class-wp-customize-section.php Coding Standards: Correct spacing for spread operators. 2023-09-10 09:04:18 +00:00
class-wp-customize-setting.php
class-wp-customize-widgets.php Script Loader: Use wp_get_script_tag() and wp_get_inline_script_tag()/wp_print_inline_script_tag() helper functions to output scripts on the frontend and login screen. 2023-09-25 21:05:21 +00:00
class-wp-date-query.php
class-wp-dependencies.php
class-wp-dependency.php
class-wp-duotone.php Editor: Fix render_duotone_support() to be compatible with enhanced pagination. 2023-10-23 23:39:20 +00:00
class-wp-editor.php
class-wp-embed.php
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
class-wp-http-cookie.php
class-wp-http-curl.php HTTP API: Deprecate WP_Http_Curl and WP_Http_Streams classes. 2023-09-21 18:29:12 +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 Docs: Use US spelling and correct a typing mistake. 2023-10-11 07:05:25 +00:00
class-wp-http-response.php
class-wp-http-streams.php HTTP API: Deprecate WP_Http_Curl and WP_Http_Streams classes. 2023-09-21 18:29:12 +00:00
class-wp-http.php HTTP API: Deprecate the http_api_transports filter. 2023-09-26 16:55:20 +00:00
class-wp-image-editor-gd.php
class-wp-image-editor-imagick.php
class-wp-image-editor.php
class-wp-list-util.php
class-wp-locale-switcher.php
class-wp-locale.php
class-wp-matchesmapregex.php
class-wp-meta-query.php
class-wp-metadata-lazyloader.php
class-wp-navigation-fallback.php Editor: Move wp_navigation schema updating to WP_Navigation_Fallback class. 2023-10-06 14:06:22 +00:00
class-wp-network-query.php
class-wp-network.php
class-wp-object-cache.php
class-wp-oembed-controller.php
class-wp-oembed.php
class-wp-paused-extensions-storage.php
class-wp-post-type.php REST API: Fix issue with Template and Template Part Revision/Autosave REST API controllers. 2023-10-10 14:05:21 +00:00
class-wp-post.php
class-wp-query.php Query: Cache post parent IDs in posts group. 2023-10-12 23:41:23 +00:00
class-wp-recovery-mode-cookie-service.php
class-wp-recovery-mode-email-service.php
class-wp-recovery-mode-key-service.php
class-wp-recovery-mode-link-service.php
class-wp-recovery-mode.php
class-wp-rewrite.php
class-wp-role.php
class-wp-roles.php
class-wp-scripts.php Script Loader: Move delayed head script to footer when there is a blocking footer dependent. 2023-10-13 18:46:21 +00:00
class-wp-session-tokens.php
class-wp-simplepie-file.php
class-wp-simplepie-sanitize-kses.php
class-wp-site-query.php
class-wp-site.php
class-wp-styles.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
class-wp-text-diff-renderer-table.php Code Modernization: Declare dynamic properties on WP_Text_Diff_Renderer_Table. 2023-10-15 14:55:23 +00:00
class-wp-textdomain-registry.php
class-wp-theme-json-data.php
class-wp-theme-json-resolver.php Editor: Reduce the use of the _wp_array_get() function to improve performance. 2023-09-26 13:47:20 +00:00
class-wp-theme-json-schema.php Coding Standards: Remove redundant ignore annotations, take 5. 2023-10-02 11:27:24 +00:00
class-wp-theme-json.php Editor: fix incorrect block custom CSS output. 2023-10-10 03:43:22 +00:00
class-wp-theme.php Themes: Make caches for block patterns clearable. 2023-10-20 19:08:21 +00:00
class-wp-user-meta-session-tokens.php
class-wp-user-query.php
class-wp-user-request.php
class-wp-user.php
class-wp-walker.php
class-wp-widget-factory.php
class-wp-widget.php
class-wp-xmlrpc-server.php
class-wp.php
class-wpdb.php
class.wp-dependencies.php
class.wp-scripts.php
class.wp-styles.php
comment-template.php Script Loader: Use wp_get_script_tag() and wp_get_inline_script_tag()/wp_print_inline_script_tag() helper functions to output scripts on the frontend and login screen. 2023-09-25 21:05:21 +00:00
comment.php Comments: Improve WP_Comment_Query count query performance by setting 'order by' to 'none'. 2023-09-29 17:13:24 +00:00
compat.php
cron.php
date.php
default-constants.php Bundled Themes: Twenty Twenty-Four is now the default theme. 2023-09-26 17:33:20 +00:00
default-filters.php Script Loader: Enqueue inline style for block template skip link in head instead of footer. 2023-10-13 17:21:22 +00:00
default-widgets.php
deprecated.php Script Loader: Enqueue inline style for block template skip link in head instead of footer. 2023-10-13 17:21:22 +00:00
embed-template.php
embed.php Script Loader: Replace hardcoded output of style tags with calls to wp_add_inline_style. 2023-09-25 17:06:34 +00:00
error-protection.php
feed-atom-comments.php
feed-atom.php
feed-rdf.php
feed-rss2-comments.php
feed-rss2.php
feed-rss.php
feed.php
fonts.php
formatting.php Coding Standards: Upgrade WPCS to version 3.0.0. 2023-09-26 00:27:12 +00:00
functions.php Administration: Remove deprecated unload event handlers and use pagehide (and pageshow) when appropriate. 2023-10-09 21:31:27 +00:00
functions.wp-scripts.php
functions.wp-styles.php
general-template.php
global-styles-and-settings.php
http.php
https-detection.php Security: remove the cron event that checked for https support. 2023-09-22 19:08:19 +00:00
https-migration.php
kses.php
l10n.php
link-template.php Posts, Post Types: Don't force trailing slash in get_pagenum_link(). 2023-10-16 00:07:26 +00:00
load.php REST API: Correct parsing of password from Authorization header when processing Application Password credentials. 2023-10-09 14:49:26 +00:00
locale.php
media-template.php Media: Change link text when attachment pages disabled. 2023-09-26 14:45:23 +00:00
media.php Shortcodes: Restrict ajax handler for media shortcode. 2023-10-12 12:47:21 +00:00
meta.php Revisions: framework for storing post meta revisions. 2023-09-26 15:32:19 +00:00
ms-blogs.php Multisite: Ensure that switching sites resets the current theme directory globals. 2023-10-19 19:09:21 +00:00
ms-default-constants.php
ms-default-filters.php
ms-deprecated.php
ms-files.php
ms-functions.php
ms-load.php
ms-network.php
ms-settings.php
ms-site.php
nav-menu-template.php
nav-menu.php
option.php Options, Meta APIs: Rename prime_options() to wp_load_options(). 2023-10-23 21:29:27 +00:00
pluggable-deprecated.php
pluggable.php Docs: Improve documentation for get_avatar() and related functions. 2023-10-03 16:15:19 +00:00
plugin.php
post-formats.php
post-template.php
post-thumbnail-template.php
post.php Query: Cache post parent IDs in posts group. 2023-10-12 23:41:23 +00:00
query.php
registration-functions.php
registration.php
rest-api.php REST API: Ensure no-cache headers are sent when methods are ovverriden. 2023-10-12 12:32:32 +00:00
revision.php Docs: Improve documentation for meta revision functions. 2023-10-23 13:17:22 +00:00
rewrite.php
robots-template.php
rss-functions.php
rss.php
script-loader.php Script Loader: Fix missing documentation for the $path argument of wp_enqueue_block_style(). 2023-10-02 18:48:24 +00:00
session.php
shortcodes.php Shortcodes: Restrict ajax handler for media shortcode. 2023-10-12 12:47:21 +00:00
sitemaps.php
spl-autoload-compat.php
style-engine.php
taxonomy.php Coding Standards: Fix a few newly introduced WPCS issues. 2023-09-25 15:36:18 +00:00
template-canvas.php Coding Standards: Remove redundant ignore annotations, take 4. 2023-10-01 00:22:27 +00:00
template-loader.php
template.php
theme-i18n.json
theme-previews.php Editor: Add function prefix to avoid conflicts. 2023-10-02 22:42:24 +00:00
theme-templates.php Script Loader: Enqueue inline style for block template skip link in head instead of footer. 2023-10-13 17:21:22 +00:00
theme.json
theme.php Editor: Improve performance of _register_theme_block_patterns function. 2023-10-03 15:18:19 +00:00
update.php
user.php
vars.php
version.php Editor: Fix render_duotone_support() to be compatible with enhanced pagination. 2023-10-23 23:39:20 +00:00
widgets.php
wp-db.php
wp-diff.php