Changeset 3335 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php
- Timestamp:
- 06/11/2016 10:07:10 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php
r3230 r3335 11 11 12 12 if ( is_user_logged_in() ) : 13 include_once ABSPATH . 'wp-admin/includes/template.php'; 13 14 14 15 if ( ! empty( $_POST['_wpnonce'] ) && wp_verify_nonce( $_POST['_wpnonce'], 'wporg-plugins-upload' ) && 'upload' === $_POST['action'] ) : … … 41 42 <?php endif; ?> 42 43 43 <form enctype="multipart/form-data" id="upload_form" method="POST" action="">44 <form id="upload_form" enctype="multipart/form-data" method="POST" action=""> 44 45 <?php wp_nonce_field( 'wporg-plugins-upload' ); ?> 45 46 <input type="hidden" name="action" value="upload"/> 47 <fieldset> 48 <legend><?php _e( 'Plugin Categories (up to 3)', 'wporg-plugins' ); ?></legend> 49 <ul class="category-checklist form-no-clear"> 50 <?php wp_terms_checklist( 0, array( 'taxonomy' => 'plugin_category' ) ); ?> 51 </ul> 52 </fieldset> 46 53 <input type="file" id="zip_file" name="zip_file" size="25"/> 47 54 <input id="upload_button" class="button" type="submit" value="<?php esc_attr_e( 'Upload', 'wporg-plugins' ); ?>"/>
Note: See TracChangeset
for help on using the changeset viewer.