/* translators: 1: Block type, 2: Typography supports key, e.g: fontSize, lineHeight, etc. 3: block.json, 4: Old metadata key, 5: New metadata key. */
__( 'Block "%1$s" is declaring %2$s support in %3$s file under %4$s. %2$s support is now declared under %5$s.'
),
$metadata['name'
],
"<code>
$typography_key</code>",
'<code>block.json</code>',
"<code>supports.
$typography_key</code>",
"<code>supports.typography.
$typography_key</code>"
),
'5.8.0'
);
_wp_array_set( $metadata['supports'
], array
( 'typography',
$typography_key ),
$support_for_key );
unset( $metadata['supports'
][ $typography_key ] );
} } return $metadata;
}/**
* Helper function that constructs a WP_Query args array from
* a `Query` block properties.
*
* It's used in Query Loop, Query Pagination Numbers and Query Pagination Next blocks.
*
* @since 5.8.0
* @since 6.1.0 Added `query_loop_block_query_vars` filter and `parents` support in query.
*
* @param WP_Block $block Block instance.
* @param int $page Current query's page.
*
* @return array Returns the constructed WP_Query arguments.
*/