WordPress.org

Make WordPress Core

Changeset 13306


Ignore:
Timestamp:
02/22/10 19:48:38 (4 years ago)
Author:
nacin
Message:

Fix notice, and use wp_max_upload_size() to fill MAX_FILE_SIZE hidden field (used by supporting browsers for a client-side check). Fixes #10849 props sivel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/opml.php

    r12515 r13306  
    1818    function dispatch() { 
    1919        global $wpdb, $user_ID; 
    20 $step = $_POST['step']; 
    21 if (!$step) $step = 0; 
    22 ?> 
    23 <?php 
     20$step = isset( $_POST['step'] ) ? $_POST['step'] : 0; 
     21 
    2422switch ($step) { 
    2523    case 0: { 
     
    4038<div style="width: 70%; margin: auto; height: 8em;"> 
    4139<input type="hidden" name="step" value="1" /> 
    42 <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> 
     40<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo wp_max_upload_size(); ?>" /> 
    4341<div style="width: 48%;" class="alignleft"> 
    4442<h3><label for="opml_url"><?php _e('Specify an OPML URL:'); ?></label></h3> 
Note: See TracChangeset for help on using the changeset viewer.