Making WordPress.org


Ignore:
Timestamp:
01/19/2017 06:52:50 AM (10 years ago)
Author:
dd32
Message:

Plugin Directory: Hide the Category selection upon plugin upload.

File:
1 edited

Legend:

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

    r3984 r4729  
    160160                // Let's save everything and get things wrapped up.
    161161
    162                 // Give the author wp-admin access if they don't have it yet.
    163                 if ( ! current_user_can( 'plugin_dashboard_access' ) ) {
    164                         wp_get_current_user()->add_role( 'plugin_committer' );
    165                 }
    166 
    167162                // Create a new post on first-time submissions.
    168163                if ( ! ( $plugin_post instanceof \WP_Post ) ) {
    … …  
    178173                                'post_content' => $content,
    179174                                'post_excerpt' => $this->plugin['Description'],
    180                                 'tax_input'    => wp_unslash( $_POST['tax_input'] ),
     175                        //      'tax_input'    => wp_unslash( $_POST['tax_input'] ),
    181176                                'meta_input'   => array(
    182177                                        'tested'                   => $readme->tested,
Note: See TracChangeset for help on using the changeset viewer.