[wp-trac] [WordPress Trac] #20179: Redirect visitors from plugin admin URL to plugin URL if user not admin

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 5 17:58:47 UTC 2012


#20179: Redirect visitors from plugin admin URL to plugin URL if user not admin
--------------------------------+-----------------------------
 Reporter:  niallkennedy        |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  WordPress.org site  |    Version:
 Severity:  normal              |   Keywords:
--------------------------------+-----------------------------
 The WordPress plugin directory features an "admin/" path relative to each
 plugin. If I am logged-in to WordPress.org and associated with the plugin
 slug I'll see a few helpful links and utilities. If I have no mapped
 relationship to the plugin I see the plugin homepage. I'd like to redirect
 visitors to "extend/plugins/{slug}/admin/" to "extend/plugins/{slug}/" if
 they do not have an admin relationship to the given plugin.

 Example: I visit a plugin page either logged out or logged in without any
 association with the plugin.
 http://wordpress.org/extend/plugins/akismet/admin/

 Response should be a redirect to:
 http://wordpress.org/extend/plugins/akismet/

 Right now the response is the same content as the plugin homepage.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20179>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list