WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/18/2018 11:53:49 AM (2 years ago)
Author:
pento
Message:

Blocks: Parse blocks when displaying posts.

Posts containing blocks are now correctly handled when displaying on the front end, including dynamic blocks and nested blocks.

See #45109.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/tests/phpunit/tests/blocks/block-parser.php

    r43751 r43752  
    6060        foreach ( array( $html_path, $parsed_json_path ) as $filename ) {
    6161            if ( ! file_exists( $filename ) ) {
    62                 //throw new Exception( "Missing fixture file: '$filename'" );
     62                throw new Exception( "Missing fixture file: '$filename'" );
    6363            }
    6464        }
     
    117117        return str_replace( "\r", '', $input );
    118118    }
    119 
    120119}
Note: See TracChangeset for help on using the changeset viewer.