diff --git a/wp-includes/blocks/latest-comments.php b/wp-includes/blocks/latest-comments.php index 44a3dce8ae..80fa24be25 100644 --- a/wp-includes/blocks/latest-comments.php +++ b/wp-includes/blocks/latest-comments.php @@ -5,7 +5,7 @@ * @package WordPress */ -if ( ! function_exists( 'gutenberg_draft_or_post_title' ) ) { +if ( ! function_exists( 'wp_latest_comments_draft_or_post_title' ) ) { /** * Get the post title. * @@ -26,7 +26,7 @@ if ( ! function_exists( 'gutenberg_draft_or_post_title' ) ) { * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post. * @return string The post title if set; "(no title)" if no title is set. */ - function wp_latest_comments_draft_or_post_title( $post = 0 ) { + function gutenberg_draft_or_post_title( $post = 0 ) { $title = get_the_title( $post ); if ( empty( $title ) ) { $title = __( '(no title)' ); @@ -42,7 +42,7 @@ if ( ! function_exists( 'gutenberg_draft_or_post_title' ) ) { * * @return string Returns the post content with latest comments added. */ -function render_block_core_latest_comments( $attributes = array() ) { +function gutenberg_render_block_core_latest_comments( $attributes = array() ) { // This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php. $comments = get_comments( apply_filters( @@ -94,7 +94,7 @@ function render_block_core_latest_comments( $attributes = array() ) { // `_draft_or_post_title` calls `esc_html()` so we don't need to wrap that call in // `esc_html`. - $post_title = '' . wp_latest_comments_draft_or_post_title( $comment->comment_post_ID ) . ''; + $post_title = '' . gutenberg_draft_or_post_title( $comment->comment_post_ID ) . ''; $list_items_markup .= sprintf( /* translators: 1: author name (inside or tag, based on if they have a URL), 2: post title related to this comment */ @@ -179,6 +179,6 @@ register_block_type( 'enum' => array( 'center', 'left', 'right', 'wide', 'full', '' ), ), ), - 'render_callback' => 'render_block_core_latest_comments', + 'render_callback' => 'gutenberg_render_block_core_latest_comments', ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index d6f1fe0023..898f9c4c19 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-RC1-43950'; +$wp_version = '5.0-RC1-43951'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.