Making WordPress.org

Changeset 7592


Ignore:
Timestamp:
08/03/2018 10:47:46 PM (6 years ago)
Author:
obenland
Message:

Gutenberg: Don't unregister block until after editor initialized.

Props randerson, aduth.
See #3735.

File:
1 edited

Legend:

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

    r7584 r7592  
    156156            'wp.data.dispatch( "core/edit-post" ).closeGeneralSidebar();' .
    157157            'wp.data.dispatch( "core/nux" ).disableTips();' .
    158             'wp.domReady( function() { wp.blocks.unregisterBlockType( "core/shortcode" ); } );'
     158            '_wpLoadGutenbergEditor.then( function() { wp.blocks.unregisterBlockType( "core/shortcode" ); } );'
    159159        );
    160160    }, 11 );
Note: See TracChangeset for help on using the changeset viewer.