Pass along POST info when requesting credentials

git-svn-id: https://develop.svn.wordpress.org/trunk@9459 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-11-01 06:56:38 +00:00
parent 5038ab53db
commit 9e262e7d0f
1 changed files with 8 additions and 1 deletions

View File

@ -602,6 +602,7 @@ function WP_Filesystem( $args = false ) {
* @return unknown
*/
function get_filesystem_method($args = array()) {
return 'ftpext';
$method = false;
if( function_exists('getmyuid') && function_exists('fileowner') ){
$temp_file = wp_tempnam();
@ -720,8 +721,14 @@ jQuery(function($){
</td>
</tr>
</table>
<?php if ( isset( $_POST['version'] ) ) : ?>
<input type="hidden" name="version" value="<?php echo attribute_escape($_POST['version']) ?>" />
<?php endif; ?>
<?php if ( isset( $_POST['locale'] ) ) : ?>
<input type="hidden" name="locale" value="<?php echo attribute_escape($_POST['locale']) ?>" />
<?php endif; ?>
<p class="submit">
<input type="submit" name="submit" value="<?php _e('Proceed'); ?>" />
<input id="upgrade" name="upgrade" type="submit" value="<?php _e('Proceed'); ?>" />
</p>
</div>
</form>