Changeset 4729
- Timestamp:
- 01/19/2017 06:52:50 AM (8 years ago)
- 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 160 160 // Let's save everything and get things wrapped up. 161 161 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 167 162 // Create a new post on first-time submissions. 168 163 if ( ! ( $plugin_post instanceof \WP_Post ) ) { … … 178 173 'post_content' => $content, 179 174 'post_excerpt' => $this->plugin['Description'], 180 'tax_input' => wp_unslash( $_POST['tax_input'] ),175 // 'tax_input' => wp_unslash( $_POST['tax_input'] ), 181 176 'meta_input' => array( 182 177 'tested' => $readme->tested, -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php
r3345 r4729 45 45 <?php wp_nonce_field( 'wporg-plugins-upload' ); ?> 46 46 <input type="hidden" name="action" value="upload"/> 47 < fieldset>47 <?php /* <fieldset> 48 48 <legend><?php _e( 'Select categories (up to 3)', 'wporg-plugins' ); ?></legend> 49 49 <ul class="category-checklist"> 50 50 <?php wp_terms_checklist( 0, array( 'taxonomy' => 'plugin_category' ) ); ?> 51 51 </ul> 52 </fieldset> 52 </fieldset> */ ?> 53 53 54 54 <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.