Making WordPress.org

Changeset 12334


Ignore:
Timestamp:
12/15/2022 04:57:48 PM (21 months ago)
Author:
ryelle
Message:

Support Forums: Blocks: Prevent block editor from loading on articles.

The block editor was also being used for the feedback form on articles, but it's missing a dependency which causes the form to disappear. This fix simply disables the block editor on articles.

See #6608.

File:
1 edited

Legend:

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

    r12332 r12334  
    239239     *
    240240     * Those circumstances are:
     241     *  - The page is an article.
    241242     *  - The user has disabled the editor.
    242243     *  - The default is forum opt-in, and the forum has the block_editor not enabled.
     
    246247        if ( ! $use_it ) {
    247248            return $use_it;
     249        }
     250
     251        if ( is_singular( 'helphub_article' ) ) {
     252            return false;
    248253        }
    249254
Note: See TracChangeset for help on using the changeset viewer.