Making WordPress.org

Changeset 12326


Ignore:
Timestamp:
12/14/2022 09:26:24 AM (22 months ago)
Author:
dd32
Message:

Support Forums: Blocks: Enable 'replaceParagraphCode'.

See #6608.

File:
1 edited

Legend:

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

    r12314 r12326  
    8686        $settings['editor']['__experimentalBlockPatterns'] = WP_Block_Patterns_Registry::get_instance()->get_all_registered();
    8787        $settings['editor']['__experimentalBlockPatternCategories'] = WP_Block_Pattern_Categories_Registry::get_instance()->get_all_registered();
     88
     89        // Enable the custom paragraph that converts HTML and PHP code into a code block.
     90        $settings['replaceParagraphCode'] = true;
    8891
    8992        return $settings;
Note: See TracChangeset for help on using the changeset viewer.