X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/177fd6fefd2e3d5a0ea6591c71d660cabdb3c1a4..refs/tags/wordpress-3.4.1:/wp-admin/media-upload.php diff --git a/wp-admin/media-upload.php b/wp-admin/media-upload.php index e7561669..6246176b 100644 --- a/wp-admin/media-upload.php +++ b/wp-admin/media-upload.php @@ -1,41 +1,147 @@ add_help_tab( array( + 'id' => 'overview', + 'title' => __('Overview'), + 'content' => + '

' . __('You can upload media files here without creating a post first. This allows you to upload files to use with posts and pages later and/or to get a web link for a particular file that you can share. There are three options for uploading files:') . '

' . + '' . + '

' . __('Basic image editing is available after upload is complete. Make sure you click Save before leaving this screen.') . '

' + ) ); + get_current_screen()->set_help_sidebar( + '

' . __('For more information:') . '

' . + '

' . __('Documentation on Uploading Media Files') . '

' . + '

' . __('Support Forums') . '

' + ); + + require_once('./admin-header.php'); + + $form_class = 'media-upload-form type-form validate'; + + if ( get_user_setting('uploader') ) + $form_class .= ' html-uploader'; + ?> +
+ +

+ +
+ + + + + + +
+ +
+
+ + + // let the action code decide how to handle the request + if ( $tab == 'type' || $tab == 'type_url' || ! array_key_exists( $tab , media_upload_tabs() ) ) + do_action("media_upload_$type"); + else + do_action("media_upload_$tab"); +}