WordPress.org

Making WordPress.org

Changeset 7547


Ignore:
Timestamp:
07/31/2018 02:19:36 AM (3 years ago)
Author:
obenland
Message:

Gutenberg: Disable shortcode block-just in case.

Props noisysocks.
See #3703.

File:
1 edited

Legend:

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

    r7546 r7547  
    5656    // Disable use XML-RPC
    5757    add_filter( 'xmlrpc_enabled', '__return_false' );
     58
     59    add_action( 'wp_footer', function() {
     60        wp_add_inline_script(
     61            'wp-edit-post',
     62            'wp.domReady( function() { wp.blocks.unregisterBlockType( "core/shortcode" ); } );'
     63        );
     64    } );
    5865
    5966    // Disable X-Pingback to header
Note: See TracChangeset for help on using the changeset viewer.