diff options
-rw-r--r-- | wp-admin/includes/media.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 1000d15..fc7ead8 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -776,6 +776,9 @@ function media_upload_form( $errors = null ) { <?php echo $errors['upload_error']->get_error_message(); ?> <?php } ?> </div> + +<?php do_action('pre-upload-ui'); ?> + <?php if ( $flash ) : ?> <script type="text/javascript"> <!-- @@ -812,15 +815,17 @@ jQuery(function($){ //--> </script> - <div id="flash-upload-ui"> +<?php do_action('pre-flash-upload-ui'); ?> <p><input id="flash-browse-button" type="button" value="<?php echo attribute_escape( __( 'Choose files to upload' ) ); ?>" class="button" /></p> +<?php do_action('post-flash-upload-ui'); ?> <p><?php _e('After a file has been uploaded, you can add titles and descriptions.'); ?></p> </div> <?php endif; // $flash ?> <div id="html-upload-ui"> +<?php do_action('pre-html-upload-ui'); ?> <p> <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php echo attribute_escape(__('Upload')); ?>" /> <a href="#" onClick="return top.tb_remove();"><?php _e('Cancel'); ?></a> </p> @@ -829,7 +834,9 @@ jQuery(function($){ <?php if ( is_lighttpd_before_150() ): ?> <p><?php _e('If you want to use all capabilities of the uploader, like uploading multiple files at once, please upgrade to lighttpd 1.5.'); ?></p> <?php endif;?> +<?php do_action('post-html-upload-ui'); ?> </div> +<?php do_action('post-upload-ui'); ?> <?php } |