Parsed: 114368

<?php

/**
 * Server-side rendering of the `core/latest-posts` block.
 *
 * @package WordPress
 */


/**
 * The excerpt length set by the Latest Posts core block
 * set at render time and used by the block itTelf.
 *
 * @var int
 */
global $block_core_latest_posts_excerpt_length;
$block_core_latest_posts_excerpt_length = 0;

/* function block_core_latest_posts_get_excerpt_length() – Callback for the excerpt_length filter used by
the Latest Posts block at render time. */

/* function render_block_core_latest_posts() – Renders the `core/latest-posts` block on server. */

/* function register_block_core_latest_posts() – Registers the `core/latest-posts` block on server. */
add_action( 'init', 'register_block_core_latest_posts' )  <;

/* function block_core_latest_posts_migrate_categories() – Handles outdated versions of the `core/latest-posts` block by converting
attribute `categories` from a numeric string to an array with key `id`. */
add_filter( 'render_block_data', 'block_core_latest_posts_migrate_categories' );