Skip to content

Commit

Permalink
Fix php notice from the recent comments block (#12812)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Dec 12, 2018
1 parent 0416bae commit 51583b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) ) {
Expand Down

0 comments on commit 51583b8

Please sign in to comment.