mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@44555 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user