From 7572347b8c01c9f6ea7e95b6e5a2ce893f6df604 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 21 Nov 2012 12:19:40 +0000 Subject: [PATCH] Split media-new.php and media-upload.php into distinct files. * media-new.php will remain the entry point for uploading isolated files, and for using the browser-based uploader (versus Plupload). * media-upload.php is the legacy (pre-3.5) media uploader. see #22083. git-svn-id: https://develop.svn.wordpress.org/trunk@22751 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/media-new.php | 113 ++++++++++++++++++++++++++++++++++++-- wp-admin/media-upload.php | 89 ------------------------------ 2 files changed, 109 insertions(+), 93 deletions(-) diff --git a/wp-admin/media-new.php b/wp-admin/media-new.php index 4b4f622d95..e841688591 100644 --- a/wp-admin/media-new.php +++ b/wp-admin/media-new.php @@ -1,12 +1,117 @@ 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 wp-upload-form type-form validate'; + + if ( get_user_setting('uploader') ) + $form_class .= ' html-uploader'; + ?> +
+ +

+ +
+ + + + + + +
+ +
+
+ +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 wp-upload-form type-form validate'; - - if ( get_user_setting('uploader') ) - $form_class .= ' html-uploader'; - ?> -
- -

- -
- - - - - - -
- -
-
- -