Changeset 12301
- Timestamp:
- 12/07/2022 06:33:40 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-blocks.php
r12300 r12301 28 28 add_filter( 'blocks_everywhere_editor_settings', [ $this, 'editor_settings' ] ); 29 29 30 // Enable the blocks on the server-side. 31 add_filter( 'blocks_everywhere_allowed_blocks', [ $this, 'allowed_blocks' ] ); 32 30 33 // Allow the oEmbed proxy endpoint for any user who can publish a thread/reply.. 31 34 add_filter( 'rest_api_init', [ $this, 'overwrite_oembed_10_proxy_permission' ], 20 ); … … 45 48 // This will make embeds resize properly. 46 49 add_theme_support( 'responsive-embeds' ); 50 } 51 52 public function allowed_blocks( $blocks ) { 53 // See ::editor_settings(); 54 $blocks[] = 'core/image'; 55 $blocks[] = 'core/embed'; 56 57 return array_unique( $blocks ); 47 58 } 48 59
Note: See TracChangeset
for help on using the changeset viewer.