Making WordPress.org

Changeset 12292


Ignore:
Timestamp:
12/02/2022 04:19:40 AM (4 years ago)
Author:
dd32
Message:

Support Forums: Add a user autocomplete handler that uses the support thread participants, rather than using the WordPress site users.

This will replace the 'wporg-bbp-user-mention-autocomplete' plugin.

See #6608.

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

Legend:

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

    r12029 r12292  
    3939        public $plugin_subscriptions = false; // Defined via Support_Compat
    4040        public $theme_subscriptions  = false; // Defined via Support_Compat
     41        public $blocks               = false;
    4142
    4243        /**
     
    8182                }
    8283
     84                if ( class_exists( 'Automattic\Blocks_Everywhere\Blocks_Everywhere' ) ) {
     85                        $this->blocks = new Blocks;
     86                }
     87
    8388                add_action( 'bbp_add_rewrite_rules', array( $this, 'maybe_flush_rewrite_rules' ) );
    8489        }
Note: See TracChangeset for help on using the changeset viewer.