Making WordPress.org

Changeset 4729


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

Plugin Directory: Hide the Category selection upon plugin upload.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes
Files:
2 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,
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php

    r3345 r4729  
    4545                <?php wp_nonce_field( 'wporg-plugins-upload' ); ?>
    4646                <input type="hidden" name="action" value="upload"/>
    47                 <fieldset>
     47                <?php /* <fieldset>
    4848                    <legend><?php _e( 'Select categories (up to 3)', 'wporg-plugins' ); ?></legend>
    4949                    <ul class="category-checklist">
    5050                        <?php wp_terms_checklist( 0, array( 'taxonomy' => 'plugin_category' ) ); ?>
    5151                    </ul>
    52                 </fieldset>
     52                </fieldset> */ ?>
    5353
    5454                <input type="file" id="zip_file" class="plugin-file" name="zip_file" size="25" accept=".zip"/>
Note: See TracChangeset for help on using the changeset viewer.