Making WordPress.org


Ignore:
Timestamp:
03/13/2017 05:56:27 AM (9 years ago)
Author:
dd32
Message:

Plugin Directory: ZIPs: Do not build zips on demand, instead store them within a SVN repository.

See #1578

File:
1 edited

Legend:

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

    r4764 r5147  
    121121                                'publish_posts'      => 'plugin_approve',
    122122                                'read_private_posts' => 'do_not_allow',
    123                                 'delete_posts'       => 'do_not_allow',
     123                                'delete_posts'       => is_super_admin() ? 'manage_options' : 'do_not_allow',
    124124                                'create_posts'       => 'do_not_allow',
    125125                        ),
     
    10061006         */
    10071007        function custom_redirects() {
    1008 
    10091008                // Handle a redirect for /$plugin/$tab_name/ to /$plugin/#$tab_name.
    10101009                if ( get_query_var( 'redirect_plugin_tab' ) ) {
     
    10311030                        // The about page is now over at /developers/.
    10321031                        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                                }
    10341039                                die();
    10351040                        }
Note: See TracChangeset for help on using the changeset viewer.