diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index e9bb44bdb0..404256fa23 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -632,7 +632,7 @@ function get_media_item( $attachment_id, $args = null ) { if ( isset($post_mime_types) ) { $keys = array_keys(wp_match_mime_types(array_keys($post_mime_types), $post->post_mime_type)); $type = array_shift($keys); - $type = ""; + $type = ""; } $form_fields = get_attachment_fields_to_edit($post, $errors); @@ -674,7 +674,7 @@ function get_media_item( $attachment_id, $args = null ) { $delete_href = wp_nonce_url("post.php?action=delete-post&post=$attachment_id", 'delete-post_' . $attachment_id); if ( $send ) - $send = ""; + $send = ""; if ( $delete ) $delete = "" . __('Delete') . ""; if ( ( $send || $delete ) && !isset($form_fields['buttons']) ) @@ -707,9 +707,9 @@ function get_media_item( $attachment_id, $args = null ) { if ( !empty($field[$field['input']]) ) $item .= $field[$field['input']]; elseif ( $field['input'] == 'textarea' ) { - $item .= ""; + $item .= ""; } else { - $item .= ""; + $item .= ""; } if ( !empty($field['helps']) ) $item .= "

" . join( "

\n

", array_unique((array) $field['helps']) ) . '

'; @@ -737,7 +737,7 @@ function get_media_item( $attachment_id, $args = null ) { $item .= "\t\n"; foreach ( $hidden_fields as $name => $value ) - $item .= "\t\n"; + $item .= "\t\n"; return $item; } @@ -765,7 +765,7 @@ function media_upload_form( $errors = null ) { $post_id = intval($_REQUEST['post_id']); ?> - +
@@ -817,7 +817,7 @@ jQuery(function($){
-

+

@@ -829,7 +829,7 @@ jQuery(function($){

- +

@@ -852,7 +852,7 @@ function media_upload_type_form($type = 'file', $errors = null, $id = null) { ?>
- +

@@ -872,7 +872,7 @@ jQuery(function($){
- + @@ -886,7 +886,7 @@ jQuery(function($){
- + - - - - - + + + + + - - - + + +
- +

@@ -1031,15 +1031,15 @@ foreach ($arc_result as $arc_row) { else $default = ''; - echo ""; - echo $wp_locale->get_month($arc_row->mmonth) . " $arc_row->yyear"; + echo ""; + echo wp_specialchars( $wp_locale->get_month($arc_row->mmonth) . " $arc_row->yyear" ); echo "\n"; } ?> - + @@ -1067,8 +1067,8 @@ jQuery(function($){

- - + +