Changeset 22459 for trunk/wp-admin/includes/plugin-install.php
- Timestamp:
- 11/07/2012 11:54:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin-install.php
r22026 r22459 143 143 function install_plugins_upload( $page = 1 ) { 144 144 ?> 145 <h4><?php _e('Install a plugin in .zip format') ?></h4>146 <p class="install-help"><?php _e('If you have a plugin in a .zip format, you may install it by uploading it here.') ?></p>147 <form method="post" enctype="multipart/form-data" action="<?php echo self_admin_url('update.php?action=upload-plugin')?>">148 <?php wp_nonce_field( 'plugin-upload') ?>145 <h4><?php _e('Install a plugin in .zip format'); ?></h4> 146 <p class="install-help"><?php _e('If you have a plugin in a .zip format, you may install it by uploading it here.'); ?></p> 147 <form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo self_admin_url('update.php?action=upload-plugin'); ?>"> 148 <?php wp_nonce_field( 'plugin-upload'); ?> 149 149 <label class="screen-reader-text" for="pluginzip"><?php _e('Plugin zip file'); ?></label> 150 150 <input type="file" id="pluginzip" name="pluginzip" /> 151 < input type="submit" class="button" value="<?php esc_attr_e('Install Now') ?>" />151 <?php submit_button( __( 'Install Now' ), 'button', 'install-plugin-submit', false ); ?> 152 152 </form> 153 153 <?php
Note: See TracChangeset
for help on using the changeset viewer.