WordPress.org

Make WordPress Core

Changeset 44555


Ignore:
Timestamp:
01/10/2019 11:31:01 PM (19 months ago)
Author:
pento
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks.php

    r44553 r44555  
    185185     */
    186186    $pre_render = apply_filters( 'pre_render_block', null, $block );
    187     if ( is_null( $pre_render ) ) {
     187    if ( ! is_null( $pre_render ) ) {
    188188        return $pre_render;
    189189    }
Note: See TracChangeset for help on using the changeset viewer.