wp/wp-admin/media-new.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
    70 }
    70 }
    71 ?>
    71 ?>
    72 <div class="wrap">
    72 <div class="wrap">
    73 	<h1><?php echo esc_html( $title ); ?></h1>
    73 	<h1><?php echo esc_html( $title ); ?></h1>
    74 
    74 
    75 	<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">
    75 	<form enctype="multipart/form-data" method="post" action="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="<?php echo esc_attr( $form_class ); ?>" id="file-form">
    76 
    76 
    77 	<?php media_upload_form(); ?>
    77 	<?php media_upload_form(); ?>
    78 
    78 
    79 	<script type="text/javascript">
    79 	<script type="text/javascript">
    80 	var post_id = <?php echo $post_id; ?>, shortform = 3;
    80 	var post_id = <?php echo absint( $post_id ); ?>, shortform = 3;
    81 	</script>
    81 	</script>
    82 	<input type="hidden" name="post_id" id="post_id" value="<?php echo $post_id; ?>" />
    82 	<input type="hidden" name="post_id" id="post_id" value="<?php echo absint( $post_id ); ?>" />
    83 	<?php wp_nonce_field( 'media-form' ); ?>
    83 	<?php wp_nonce_field( 'media-form' ); ?>
    84 	<div id="media-items" class="hide-if-no-js"></div>
    84 	<div id="media-items" class="hide-if-no-js"></div>
    85 	</form>
    85 	</form>
    86 </div>
    86 </div>
    87 
    87