From c94c954d02e9b08c4bfe7298a2196f5806698e8b Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Tue, 22 Jun 2021 21:23:57 +0000 Subject: [PATCH] Media: Add lazy-loading support to block-based widgets. This changeset adds the `wp_filter_content_tags()` function as a filter to `widget_block_content`. Props spacedmonkey, walbo, daisyo. Fixes #53463, #53464. Built from https://develop.svn.wordpress.org/trunk@51207 git-svn-id: http://core.svn.wordpress.org/trunk@50816 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/default-filters.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index ba241dbcb4..144ddc8ccd 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -215,6 +215,7 @@ add_filter( 'widget_text_content', 'wp_replace_insecure_home_url' ); add_filter( 'widget_text_content', 'do_shortcode', 11 ); // Runs after wpautop(); note that $post global will be null when shortcodes run. add_filter( 'widget_block_content', 'do_blocks', 9 ); +add_filter( 'widget_block_content', 'wp_filter_content_tags' ); add_filter( 'widget_block_content', 'do_shortcode', 11 ); add_filter( 'block_type_metadata', 'wp_migrate_old_typography_shape' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 693da0bb9c..e837c7856b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-beta2-51206'; +$wp_version = '5.8-beta2-51207'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.