Making WordPress.org

Changeset 8481


Ignore:
Timestamp:
03/20/2019 11:29:25 PM (6 years ago)
Author:
dd32
Message:

Gutenberg Theme: Remove use of deprecated _wpLoadGutenbergEditor and replace it with _wpLoadBlockEditor.

This once again disables the Shortcode block from being displayed.

See https://github.com/WordPress/gutenberg/pull/14144
See #4228.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php

    r8480 r8481  
    523523            'wp.data.dispatch( "core/edit-post" ).closeGeneralSidebar();' .
    524524            'wp.data.dispatch( "core/nux" ).disableTips();' .
    525             '_wpLoadGutenbergEditor.then( function() { wp.blocks.unregisterBlockType( "core/shortcode" ); } );'
     525            '_wpLoadBlockEditor.then( function() { wp.blocks.unregisterBlockType( "core/shortcode" ); } );'
    526526        );
    527527
Note: See TracChangeset for help on using the changeset viewer.