diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-05-12 10:28:23 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-05-12 10:28:23 +0000 |
commit | 2868986b308aad68733373888c825c77e6d1ff0c (patch) | |
tree | 38cd659a3d97ede932c417be7089ee036c0d380d /wp-admin/includes | |
parent | 957d3a2fa4285f17f120b1f295824002686ce930 (diff) | |
download | wordpress-mu-2868986b308aad68733373888c825c77e6d1ff0c.tar.gz wordpress-mu-2868986b308aad68733373888c825c77e6d1ff0c.tar.xz wordpress-mu-2868986b308aad68733373888c825c77e6d1ff0c.zip |
Add actions to flash uploader
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1282 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/includes')
-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 } |