From e9187cf2d66a58aed509f53db2a9fe56f50c8e10 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Wed, 12 Dec 2018 16:27:11 +0100 Subject: [PATCH] Fix php notice from the recent comments block (#12812) --- lib/load.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/load.php b/lib/load.php index 0c55db3a37f6c..ee1c973f99568 100644 --- a/lib/load.php +++ b/lib/load.php @@ -62,7 +62,10 @@ if ( ! function_exists( 'render_block_core_categories' ) ) { require dirname( __FILE__ ) . '/../packages/block-library/src/categories/index.php'; } -if ( ! function_exists( 'render_block_core_latest_comments' ) ) { +// Currently merged in core as `gutenberg_render_block_core_latest_comments`, +// expected to change soon. +if ( ! function_exists( 'render_block_core_latest_comments' ) + && ! function_exists( 'gutenberg_render_block_core_latest_comments' ) ) { require dirname( __FILE__ ) . '/../packages/block-library/src/latest-comments/index.php'; } if ( ! function_exists( 'render_block_core_latest_posts' ) ) {