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
This commit is contained in:
parent
0f249041f9
commit
c94c954d02
|
@ -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_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', 'do_blocks', 9 );
|
||||||
|
add_filter( 'widget_block_content', 'wp_filter_content_tags' );
|
||||||
add_filter( 'widget_block_content', 'do_shortcode', 11 );
|
add_filter( 'widget_block_content', 'do_shortcode', 11 );
|
||||||
|
|
||||||
add_filter( 'block_type_metadata', 'wp_migrate_old_typography_shape' );
|
add_filter( 'block_type_metadata', 'wp_migrate_old_typography_shape' );
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue