Making WordPress.org

Changeset 11313


Ignore:
Timestamp:
11/04/2021 11:50:54 PM (2 years ago)
Author:
dd32
Message:

Support Forums: Redirect the technical-support plugin forum to the Fixing WordPress forum.

See #5238.
Fixes #5944.

File:
1 edited

Legend:

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

    r11062 r11313  
    346346
    347347    /**
    348      * Redirect the defunct plugin 'ask-question' to the how to / troubleshooting forum
     348     * Redirect some problematic defunct plugin support forums to the how to / troubleshooting forum
    349349     * as it's a better destination for the users reaching the plugin forum from search engines.
    350350     */
     
    352352        if (
    353353            'plugin' === get_query_var( 'bbp_view' ) &&
    354             'ask-question' === get_query_var( 'wporg_plugin' )
     354            in_array( get_query_var( 'wporg_plugin' ), array( 'ask-question', 'technical-support' ) )
    355355        ) {
    356356            wp_safe_redirect( home_url( '/forum/how-to-and-troubleshooting/' ) );
Note: See TracChangeset for help on using the changeset viewer.