Making WordPress.org


Ignore:
Timestamp:
03/30/2017 09:33:43 PM (7 years ago)
Author:
Otto42
Message:

Plugin Directory: Ignore everything after hash marks, not just particular and expected URL fragments.

File:
1 edited

Legend:

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

    r5211 r5216  
    446446
    447447        // Handle redirects for broken clients that send #'s to the server
    448         add_rewrite_rule( '^([^/]+)/\#(installation|faq|screenshots|changelog|stats|developers|other_notes)/?$', 'index.php?redirect_plugin=$matches[1]', 'top' );
     448        add_rewrite_rule( '^([^/]+)/\#(.*)/?$', 'index.php?redirect_plugin=$matches[1]', 'top' );
    449449
    450450        // If changing capabilities around, uncomment this.
    451451        //Capabilities::add_roles();
    452452
    453         // Remvoe the /admin$ redirect to wp-admin
     453        // Remove the /admin$ redirect to wp-admin
    454454        remove_action( 'template_redirect', 'wp_redirect_admin_locations', 1000 );
    455455
Note: See TracChangeset for help on using the changeset viewer.