From 203d686ec962ccbb9cf3e8a231a4853a925873ca Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Thu, 10 Jan 2019 23:31:50 +0000 Subject: [PATCH] Blocks: Reverse the logic when checking the `pre_render_block` result. We should be returning if the result isn't null, not when it is. See #45451. Built from https://develop.svn.wordpress.org/trunk@44555 git-svn-id: http://core.svn.wordpress.org/trunk@44386 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/blocks.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index cefe9cfbb5..f59fb1b485 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -184,7 +184,7 @@ function render_block( $block ) { * @param array $block The block being rendered. */ $pre_render = apply_filters( 'pre_render_block', null, $block ); - if ( is_null( $pre_render ) ) { + if ( ! is_null( $pre_render ) ) { return $pre_render; } diff --git a/wp-includes/version.php b/wp-includes/version.php index fe88ba30f5..81fe86670e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44554'; +$wp_version = '5.1-alpha-44555'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.