Fix invalid HTML and remove duplicate fields. Fixes #7293 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4b4f85c2d4
commit
7b0371676d
|
@ -871,7 +871,6 @@ function media_upload_form( $errors = null ) {
|
||||||
$post_id = intval($_REQUEST['post_id']);
|
$post_id = intval($_REQUEST['post_id']);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<input type='hidden' name='post_id' value='<?php echo (int) $post_id; ?>' />
|
|
||||||
<div id="media-upload-notice">
|
<div id="media-upload-notice">
|
||||||
<?php if (isset($errors['upload_notice']) ) { ?>
|
<?php if (isset($errors['upload_notice']) ) { ?>
|
||||||
<?php echo $errors['upload_notice']; ?>
|
<?php echo $errors['upload_notice']; ?>
|
||||||
|
@ -934,9 +933,9 @@ jQuery(function($){
|
||||||
<div id="html-upload-ui">
|
<div id="html-upload-ui">
|
||||||
<?php do_action('pre-html-upload-ui'); ?>
|
<?php do_action('pre-html-upload-ui'); ?>
|
||||||
<p>
|
<p>
|
||||||
<input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php echo attribute_escape(__('Upload')); ?>" /> <a href="#" onClick="return top.tb_remove();"><?php _e('Cancel'); ?></a>
|
<input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php echo attribute_escape(__('Upload')); ?>" /> <a href="#" onclick="return top.tb_remove();"><?php _e('Cancel'); ?></a>
|
||||||
</p>
|
</p>
|
||||||
<input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" />
|
|
||||||
<br class="clear" />
|
<br class="clear" />
|
||||||
<?php if ( is_lighttpd_before_150() ): ?>
|
<?php if ( is_lighttpd_before_150() ): ?>
|
||||||
<p><?php _e('If you want to use all capabilities of the uploader, like uploading multiple files at once, please upgrade to lighttpd 1.5.'); ?></p>
|
<p><?php _e('If you want to use all capabilities of the uploader, like uploading multiple files at once, please upgrade to lighttpd 1.5.'); ?></p>
|
||||||
|
@ -1069,6 +1068,7 @@ var addExtImage = {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<input type="submit" class="button savebutton" name="save" value="<?php echo attribute_escape( __( 'Save all changes' ) ); ?>" />
|
<input type="submit" class="button savebutton" name="save" value="<?php echo attribute_escape( __( 'Save all changes' ) ); ?>" />
|
||||||
|
</form>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
}
|
}
|
||||||
|
@ -1281,7 +1281,7 @@ function type_form_image() {
|
||||||
<span class="alignleft"><label for="src">' . __('Source') . '</label></span>
|
<span class="alignleft"><label for="src">' . __('Source') . '</label></span>
|
||||||
<span class="alignright"><img id="status_img" src="images/required.gif" title="required" alt="required" /></span>
|
<span class="alignright"><img id="status_img" src="images/required.gif" title="required" alt="required" /></span>
|
||||||
</th>
|
</th>
|
||||||
<td class="field"><input id="src" name="src" value="" type="text" aria-required="true" onblur="addExtImage.getImageData()"></td>
|
<td class="field"><input id="src" name="src" value="" type="text" aria-required="true" onblur="addExtImage.getImageData()" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in New Issue