Changeset 7584 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php
- Timestamp:
- 08/02/2018 04:49:21 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php
r7583 r7584 155 155 'wp-edit-post', 156 156 'wp.data.dispatch( "core/edit-post" ).closeGeneralSidebar();' . 157 'wp.data.dispatch( "core/nux" ).disableTips();' 158 ); 159 } ); 157 'wp.data.dispatch( "core/nux" ).disableTips();' . 158 'wp.domReady( function() { wp.blocks.unregisterBlockType( "core/shortcode" ); } );' 159 ); 160 }, 11 ); 160 161 add_action( 'wp_enqueue_scripts', 'gutenberg_editor_scripts_and_styles' ); 161 162 … … 166 167 // Disable use XML-RPC 167 168 add_filter( 'xmlrpc_enabled', '__return_false' ); 168 169 add_action( 'wp_footer', function() {170 wp_add_inline_script(171 'wp-edit-post',172 'wp.domReady( function() { wp.blocks.unregisterBlockType( "core/shortcode" ); } );'173 );174 } );175 169 176 170 // Disable X-Pingback to header
Note: See TracChangeset
for help on using the changeset viewer.