Make WordPress Core


Ignore:
Timestamp:
12/13/2018 06:11:10 PM (6 years ago)
Author:
desrosj
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.

Props pento.

Merges [43752] to trunk.

See #45109.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tests/phpunit/tests/blocks/block-parser.php

    r44116 r44118  
    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.