Changeset 5206
- Timestamp:
- 03/30/2017 07:28:30 AM (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
r5192 r5206 436 436 add_rewrite_rule( '^browse/favorites/([^/]+)$', 'index.php?browse=favorites&favorites_user=$matches[1]', 'top' ); 437 437 438 // Add duplicate search rule which will be hit before the following old-plugin tab rules 439 add_rewrite_rule( '^search/([^/]+)/?$', 'index.php?s=$matches[1]', 'top' ); 440 438 441 // Handle plugin admin requests 439 442 add_rewrite_rule( '^([^/]+)/admin/?$', 'index.php?name=$matches[1]&plugin_admin=1', 'top' ); 440 443 441 // Add duplicate search rule which will be hit before the following old-plugin tab rules442 add_rewrite_rule( '^search/([^/]+)/?$', 'index.php?s=$matches[1]', 'top' );443 444 444 // Handle the old plugin tabs URLs. 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' ); … … 447 447 // If changing capabilities around, uncomment this. 448 448 //Capabilities::add_roles(); 449 450 // Remvoe the /admin$ redirect to wp-admin 451 remove_action( 'template_redirect', 'wp_redirect_admin_locations', 1000 ); 449 452 450 453 // When this plugin is used in the context of a Rosetta site, handle it gracefully.
Note: See TracChangeset
for help on using the changeset viewer.