Making WordPress.org


Ignore:
Timestamp:
03/20/2019 09:25:43 PM (6 years ago)
Author:
coffee2code
Message:

Gutenberg: Remove use of removed gutenberg_editor_scripts_and_styles().

Props youknowriad, aduth.

File:
1 edited

Legend:

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

    r8132 r8479  
    170170    }, 11 );
    171171
    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 
    180172    add_action( 'enqueue_block_editor_assets', function() {
    181173        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.