Making WordPress.org


Ignore:
Timestamp:
04/12/2023 01:46:54 AM (2 years ago)
Author:
dd32
Message:

Support Forums: Fill in the plugin/theme directory view hooks earlier, so that the custom views feeds (which are not actually defined as views, other than through filters) are registered in time for [12529].

Followup to [12529].

File:
1 edited

Legend:

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

    r12410 r12531  
    3333    public function init() {
    3434        if ( defined( 'WPORG_SUPPORT_FORUMS_BLOGID' ) && get_current_blog_id() == WPORG_SUPPORT_FORUMS_BLOGID ) {
    35             // Intercept feed requests prior to bbp_request_feed_trap.
    36             add_filter( 'bbp_request', array( $this, 'request' ), 9 );
     35            // Intercept feed requests prior to bbp_request_feed_trap at 10, before Performance::bbp_request_disable_missing_view_feeds at 9
     36            add_filter( 'bbp_request', array( $this, 'request' ), 5 );
    3737
    3838            // Add plugin or theme name to view feed titles.
Note: See TracChangeset for help on using the changeset viewer.