Changeset 5217 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 03/30/2017 09:42:37 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r5216 r5217 445 445 add_rewrite_rule( '^([^/]+)/(installation|faq|screenshots|changelog|stats|developers|other_notes)/?$', 'index.php?redirect_plugin=$matches[1]&redirect_plugin_tab=$matches[2]', 'top' ); 446 446 447 // Handle redirectsfor broken clients that send #'s to the server448 add_rewrite_rule( '^([^/]+)/\#(.*)/?$', 'index.php? redirect_plugin=$matches[1]', 'top' );447 // Handle content for broken clients that send #'s to the server 448 add_rewrite_rule( '^([^/]+)/\#(.*)/?$', 'index.php?name=$matches[1]', 'top' ); 449 449 450 450 // If changing capabilities around, uncomment this. … … 1022 1022 } 1023 1023 1024 // Handle a redirect for /$plugin/#$tab_name to just /$plugin/, because some clients don't like fragments in redirects1025 if ( get_query_var( 'redirect_plugin' ) ) {1026 wp_safe_redirect( site_url( get_query_var( 'redirect_plugin' ) . '/' ) );1027 die();1028 }1029 1030 1024 // We've disabled WordPress's default 404 redirects, so we'll handle them ourselves. 1031 1025 if ( is_404() ) {
Note: See TracChangeset
for help on using the changeset viewer.