mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 23:27:04 +00:00
Block Editor: Update @wordpress package dependencies.
Update packages include: - block-library - components - edit-post - editor - format-library - list-reusable-blocks - nux Other changes: - Fix a translator comment in `edit-form-blocks.php`. - Rename the `gutenberg_` functions in `blocks/latest-comments.php`. Props noisy socks, youknowriad, pinto, swissspidy. Merges [43935] and [43949-43951] into trunk. See #45145. git-svn-id: https://develop.svn.wordpress.org/trunk@44273 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Server-side rendering of the `core/latest-posts` block.
|
||||
*
|
||||
* @package gutenberg
|
||||
* @package WordPress
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -21,7 +21,7 @@ function render_block_core_latest_posts( $attributes ) {
|
||||
);
|
||||
|
||||
if ( isset( $attributes['categories'] ) ) {
|
||||
$args['categories'] = $attributes['categories'];
|
||||
$args['category'] = $attributes['categories'];
|
||||
}
|
||||
|
||||
$recent_posts = wp_get_recent_posts( $args );
|
||||
@@ -33,7 +33,7 @@ function render_block_core_latest_posts( $attributes ) {
|
||||
|
||||
$title = get_the_title( $post_id );
|
||||
if ( ! $title ) {
|
||||
$title = __( '(Untitled)', 'default' );
|
||||
$title = __( '(Untitled)' );
|
||||
}
|
||||
$list_items_markup .= sprintf(
|
||||
'<li><a href="%1$s">%2$s</a>',
|
||||
|
||||
Reference in New Issue
Block a user