scripts.mit.edu
/
autoinstalls
/
wordpress.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WordPress 3.8
[autoinstalls/wordpress.git]
/
wp-admin
/
media-new.php
diff --git
a/wp-admin/media-new.php
b/wp-admin/media-new.php
index c6a7ae141584e2df823d9e0ee64199c59a0975ef..75f49f10088cb726a0435e4be60c917af0dd594d 100644
(file)
--- a/
wp-admin/media-new.php
+++ b/
wp-admin/media-new.php
@@
-10,7
+10,7
@@
*/
/** Load WordPress Administration Bootstrap */
*/
/** Load WordPress Administration Bootstrap */
-require_once(
'./admin.php'
);
+require_once(
dirname( __FILE__ ) . '/admin.php'
);
if (!current_user_can('upload_files'))
wp_die(__('You do not have permission to upload files.'));
if (!current_user_can('upload_files'))
wp_die(__('You do not have permission to upload files.'));
@@
-65,10
+65,9
@@
if ( get_user_setting('uploader') || isset( $_GET['browser-uploader'] ) )
$form_class .= ' html-uploader';
?>
<div class="wrap">
$form_class .= ' html-uploader';
?>
<div class="wrap">
- <?php screen_icon(); ?>
<h2><?php echo esc_html( $title ); ?></h2>
<h2><?php echo esc_html( $title ); ?></h2>
- <form enctype="multipart/form-data" method="post" action="<?php echo admin_url('media-new.php'); ?>" class="<?php echo
$form_class
; ?>" id="file-form">
+ <form enctype="multipart/form-data" method="post" action="<?php echo admin_url('media-new.php'); ?>" class="<?php echo
esc_attr( $form_class )
; ?>" id="file-form">
<?php media_upload_form(); ?>
<?php media_upload_form(); ?>