Make WordPress Core


Ignore:
Timestamp:
12/17/2018 04:50:48 AM (6 years ago)
Author:
desrosj
Message:

Block Editor: Update @wordpress dependencies.

Changes of note:

  • Includes the new Annotations API package.
  • wp-polyfill-ecmascript.js is renamed to wp-polyfill.js.
  • strip_dynamic_blocks() has been removed in favor of excerpt_remove_blocks().
  • The PHP block parser is now syncing from the block-serialization-default-parser package.
  • do_blocks() uses the new parser.
  • The do_block filter has been removed from do_blocks(), in favor of a render_block filter in render_block().

Also, a little cleanup to render_block(). Always normalize $block['attrs’] to array in ’render_block’ filter.
Props pento, azaozz.

Merges [43884] and [43888] to trunk.

See #45145, #45190, #45264, #45282.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-includes/script-loader.php

    r44260 r44261  
    8686        'wp-polyfill-node-contains',
    8787        'wp-polyfill-element-closest',
    88         'wp-polyfill-ecmascript',
     88        'wp-polyfill',
    8989    );
    9090
     
    100100    }
    101101
    102     $scripts->add( 'wp-polyfill', null, array( 'wp-polyfill-ecmascript' ) );
     102    $scripts->add( 'wp-polyfill', null, array( 'wp-polyfill' ) );
    103103    did_action( 'init' ) && $scripts->add_data(
    104104        'wp-polyfill',
     
    167167        'api-fetch'                          => array( 'wp-polyfill', 'wp-hooks', 'wp-i18n', 'wp-url' ),
    168168        'a11y'                               => array( 'wp-dom-ready', 'wp-polyfill' ),
     169        'annotations'                        => array(
     170            'wp-data',
     171            'wp-hooks',
     172            'wp-i18n',
     173            'wp-polyfill',
     174            'wp-rich-text',
     175        ),
    169176        'autop'                              => array( 'wp-polyfill' ),
    170177        'blob'                               => array( 'wp-polyfill' ),
     
    260267            'wp-core-data',
    261268            'wp-data',
    262             'wp-deprecated',
    263269            'wp-dom-ready',
    264270            'wp-editor',
     
    335341            'wp-a11y',
    336342            'wp-data',
    337             'wp-polyfill-ecmascript',
     343            'wp-polyfill',
    338344        ),
    339345        'nux'                                => array(
Note: See TracChangeset for help on using the changeset viewer.