Changes in trunk/wp-admin/media-upload.php [19528:21048]
- File:
-
- 1 edited
-
trunk/wp-admin/media-upload.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/media-upload.php
r19528 r21048 23 23 wp_enqueue_script('set-post-thumbnail' ); 24 24 wp_enqueue_style('imgareaselect'); 25 wp_enqueue_script( 'media-gallery' ); 25 26 26 27 @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); … … 32 33 // Require an ID for the edit screen 33 34 if ( isset($action) && $action == 'edit' && !$ID ) 34 wp_die( __("You are not allowed to be here"));35 wp_die( __( 'Cheatin’ uh?' ) ); 35 36 36 37 if ( isset($_GET['inline']) ) { 37 38 $errors = array(); 39 40 if ( ! empty( $_REQUEST['post_id'] ) && ! current_user_can( 'edit_post' , $_REQUEST['post_id'] ) ) 41 wp_die( __( 'Cheatin’ uh?' ) ); 38 42 39 43 if ( isset($_POST['html-upload']) && !empty($_FILES) ) { … … 59 63 } 60 64 65 if ( isset( $_REQUEST['post_id'] ) ) 66 wp_die( __( 'Cheatin’ uh?' ) ); 67 61 68 $title = __('Upload New Media'); 62 69 $parent_file = 'upload.php'; … … 68 75 '<ul>' . 69 76 '<li>' . __('<strong>Drag and drop</strong> your files into the area below. Multiple files are allowed.') . '</li>' . 70 '<li>' . __('<strong>Select Files</strong> will open the multi-file uploader, or you can use the <strong>Browser Uploader</strong>.') . '</li>' .71 77 '<li>' . __('Clicking <strong>Select Files</strong> opens a navigation window showing you files in your operating system. Selecting <strong>Open</strong> after clicking on the file you want activates a progress bar on the uploader screen.') . '</li>' . 78 '<li>' . __('Revert to the <strong>Browser Uploader</strong> by clicking the link below the drag and drop box.') . '</li>' . 72 79 '</ul>' . 73 80 '<p>' . __('Basic image editing is available after upload is complete. Make sure you click Save before leaving this screen.') . '</p>' … … 116 123 117 124 } else { 125 if ( ! empty( $_REQUEST['post_id'] ) && ! current_user_can( 'edit_post' , $_REQUEST['post_id'] ) ) 126 wp_die( __( 'Cheatin’ uh?' ) ); 118 127 119 128 // upload type: image, video, file, ..? … … 137 146 do_action("media_upload_$tab"); 138 147 } 139 ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)