diff --git a/wp-includes/blocks/rss.php b/wp-includes/blocks/rss.php index 316919bad2..34434a6e3d 100644 --- a/wp-includes/blocks/rss.php +++ b/wp-includes/blocks/rss.php @@ -80,7 +80,7 @@ function render_block_core_rss( $attributes ) { } $classes = 'grid' === $attributes['blockLayout'] ? ' is-grid columns-' . $attributes['columns'] : ''; - $list_items_markup = sprintf( "", esc_attr( $class ), $list_items ); + $list_items_markup = sprintf( "", esc_attr( $classes ), $list_items ); // PHP 5.2 compatibility. See: http://simplepie.org/wiki/faq/i_m_getting_memory_leaks. $rss->__destruct(); @@ -93,7 +93,8 @@ function render_block_core_rss( $attributes ) { * Registers the `core/rss` block on server. */ function register_block_core_rss() { - register_block_type( 'core/rss', + register_block_type( + 'core/rss', array( 'attributes' => array( 'columns' => array(