Making WordPress.org

Changeset 12313


Ignore:
Timestamp:
12/12/2022 12:16:33 AM (19 months ago)
Author:
dd32
Message:

Support Forums: Blocks: Remove the support-forum-specific mention autocompleter in preference for the one upstream in the Blocks Everywhere plugin.

See https://github.com/Automattic/blocks-everywhere/pull/78.
See #6608.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-blocks.php

    r12303 r12313  
    1919        add_filter( 'blocks_everywhere_theme_compat', '__return_true' );
    2020
    21         // Any Javascript / CSS tweaks needed.
    22         add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_scripts' ] );
    23 
    2421        // Theme Tweaks, these should be moved to the theme.
    2522        add_filter( 'after_setup_theme', [ $this, 'after_setup_theme' ] );
     
    3633        // Hack to make Imgur embeds work. This should be fixed by Imgur.
    3734        add_filter( 'oembed_remote_get_args', [ $this, 'oembed_remote_get_args' ], 10, 2 );
    38     }
    39 
    40     public function enqueue_scripts() {
    41         wp_enqueue_script(
    42             'wporg-bbp-blocks',
    43             plugins_url( '/js/blocks.js', __DIR__ ),
    44             [ 'wp-block-editor', 'jquery' ],
    45             filemtime( dirname( __DIR__ ) . '/js/blocks.js' ),
    46             true
    47         );
    4835    }
    4936
Note: See TracChangeset for help on using the changeset viewer.