Making WordPress.org


Ignore:
Timestamp:
03/02/2023 10:50:51 AM (12 months ago)
Author:
paulkevan
Message:

Reduce scope of rewrite rules, see https://github.com/WordPress/wordpress.org/pull/127/

File:
1 edited

Legend:

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

    r12337 r12441  
    526526
    527527        // Handle the old plugin tabs URLs.
    528         add_rewrite_rule( '^([^/]+)/(installation|faq|screenshots|changelog|stats|developers|other_notes)/?$', 'index.php?redirect_plugin=$matches[1]&redirect_plugin_tab=$matches[2]', 'top' );
     528        add_rewrite_rule( '^extend/plugins/([^/]+)/(?!tags)/(installation|faq|screenshots|changelog|stats|developers|other_notes)/?$', 'index.php?redirect_plugin=$matches[1]&redirect_plugin_tab=$matches[2]', 'top' );
    529529
    530530        // Handle content for broken clients that send #'s to the server
Note: See TracChangeset for help on using the changeset viewer.