Changeset 8479 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php
- Timestamp:
- 03/20/2019 09:25:43 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php
r8132 r8479 170 170 }, 11 ); 171 171 172 add_action( 'wp_enqueue_scripts', function( $hook ) {173 // Gutenberg requires the post-locking functions defined within:174 // See `show_post_locked_dialog` and `get_post_metadata` filters below.175 include_once ABSPATH . 'wp-admin/includes/post.php';176 177 gutenberg_editor_scripts_and_styles( $hook );178 } );179 180 172 add_action( 'enqueue_block_editor_assets', function() { 181 173 wp_enqueue_script( 'button-readonly', get_template_directory_uri() . '/js/button-readonly.js', array( 'wp-blocks', 'wp-element' ), null );
Note: See TracChangeset
for help on using the changeset viewer.