Changeset 5147 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 03/13/2017 05:56:27 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
r4764 r5147 121 121 'publish_posts' => 'plugin_approve', 122 122 'read_private_posts' => 'do_not_allow', 123 'delete_posts' => 'do_not_allow',123 'delete_posts' => is_super_admin() ? 'manage_options' : 'do_not_allow', 124 124 'create_posts' => 'do_not_allow', 125 125 ), … … 1006 1006 */ 1007 1007 function custom_redirects() { 1008 1009 1008 // Handle a redirect for /$plugin/$tab_name/ to /$plugin/#$tab_name. 1010 1009 if ( get_query_var( 'redirect_plugin_tab' ) ) { … … 1031 1030 // The about page is now over at /developers/. 1032 1031 if ( 'about' === $path[2] ) { 1033 wp_safe_redirect( home_url( '/developers/' . ( ( isset( $path[3] ) && 'add' == $path[3] ) ? 'add/' : '' ) ) ); 1032 if ( isset( $path[3] ) && 'add' == $path[3] ) { 1033 wp_safe_redirect( home_url( '/developers/add/' ) ); 1034 } elseif ( isset( $path[3] ) && 'validator' == $path[3] ) { 1035 wp_safe_redirect( home_url( '/developers/readme-validator/' ) ); 1036 } else { 1037 wp_safe_redirect( home_url( '/developers/' ) ); 1038 } 1034 1039 die(); 1035 1040 }
Note: See TracChangeset
for help on using the changeset viewer.