Making WordPress.org


Ignore:
Timestamp:
07/31/2018 04:51:55 AM (6 years ago)
Author:
tellyworth
Message:

Gutenberg: make Download button non-editable so it's clickable from the editor.

See #3703

File:
1 edited

Legend:

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

    r7549 r7552  
    5757    add_action( 'wp_enqueue_scripts', 'gutenberg_editor_scripts_and_styles' );
    5858
     59    add_action( 'enqueue_block_editor_assets', function() {
     60        wp_enqueue_script( 'button-readonly', get_template_directory_uri() . '/js/button-readonly.js', array(), null );
     61    } );
     62
    5963    // Disable use XML-RPC
    6064    add_filter( 'xmlrpc_enabled', '__return_false' );
Note: See TracChangeset for help on using the changeset viewer.