Making WordPress.org


Ignore:
Timestamp:
04/10/2019 04:19:41 AM (5 years ago)
Author:
dd32
Message:

Support Forums: Add a rewrite rule for the Plugin/Theme directories base slugs which redirects to their respective directories.

Fixes #4365.

File:
1 edited

Legend:

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

    r8213 r8617  
    456456        $paged_rule = $paged_slug . '/?([0-9]{1,})/?$';
    457457
     458        // Add base rule, so that /support/$compat_slug/ doesn't redirect to a random topic.
     459        add_rewrite_rule( $this->compat() . '/?$',  'index.php?' . $view_id . '=' . $review_id . '&' . $root_var . '=_redirect_', $priority );
     460
    458461        // Add reviews view rewrite rules.
    459462        add_rewrite_rule( $reviews_rule . $base_rule,  'index.php?' . $view_id . '=' . $review_id . '&' . $root_var . '=$matches[1]',                               $priority );
Note: See TracChangeset for help on using the changeset viewer.