Changeset 12313
- Timestamp:
- 12/12/2022 12:16:33 AM (2 years ago)
- 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 19 19 add_filter( 'blocks_everywhere_theme_compat', '__return_true' ); 20 20 21 // Any Javascript / CSS tweaks needed.22 add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_scripts' ] );23 24 21 // Theme Tweaks, these should be moved to the theme. 25 22 add_filter( 'after_setup_theme', [ $this, 'after_setup_theme' ] ); … … 36 33 // Hack to make Imgur embeds work. This should be fixed by Imgur. 37 34 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 true47 );48 35 } 49 36
Note: See TracChangeset
for help on using the changeset viewer.