Use admin_url() for the media-upload.php url. see #13685

git-svn-id: http://svn.automattic.com/wordpress/trunk@15171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-06-08 14:02:16 +00:00
parent c89b8c3ef2
commit 359e1620b2
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ if ( isset($_GET['inline']) ) {
<?php screen_icon(); ?> <?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="media-upload.php?inline=&amp;upload-page-form=" class="media-upload-form type-form validate" id="file-form"> <form enctype="multipart/form-data" method="post" action="<?php echo admin_url('media-upload.php?inline=&amp;upload-page-form='); ?>" class="media-upload-form type-form validate" id="file-form">
<?php media_upload_form(); ?> <?php media_upload_form(); ?>