Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-media.php

    r19507 r20605  
    6161<td>
    6262<label for="thumbnail_size_w"><?php _e('Width'); ?></label>
    63 <input name="thumbnail_size_w" type="text" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" class="small-text" />
     63<input name="thumbnail_size_w" type="number" step="1" min="0" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" class="small-text" />
    6464<label for="thumbnail_size_h"><?php _e('Height'); ?></label>
    65 <input name="thumbnail_size_h" type="text" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" class="small-text" /><br />
     65<input name="thumbnail_size_h" type="number" step="1" min="0" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" class="small-text" /><br />
    6666<input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked('1', get_option('thumbnail_crop')); ?>/>
    6767<label for="thumbnail_crop"><?php _e('Crop thumbnail to exact dimensions (normally thumbnails are proportional)'); ?></label>
    … …  
    7373<td><fieldset><legend class="screen-reader-text"><span><?php _e('Medium size'); ?></span></legend>
    7474<label for="medium_size_w"><?php _e('Max Width'); ?></label>
    75 <input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" class="small-text" />
     75<input name="medium_size_w" type="number" step="1" min="0" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" class="small-text" />
    7676<label for="medium_size_h"><?php _e('Max Height'); ?></label>
    77 <input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" class="small-text" />
     77<input name="medium_size_h" type="number" step="1" min="0" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" class="small-text" />
    7878</fieldset></td>
    7979</tr>
    … …  
    8383<td><fieldset><legend class="screen-reader-text"><span><?php _e('Large size'); ?></span></legend>
    8484<label for="large_size_w"><?php _e('Max Width'); ?></label>
    85 <input name="large_size_w" type="text" id="large_size_w" value="<?php form_option('large_size_w'); ?>" class="small-text" />
     85<input name="large_size_w" type="number" step="1" min="0" id="large_size_w" value="<?php form_option('large_size_w'); ?>" class="small-text" />
    8686<label for="large_size_h"><?php _e('Max Height'); ?></label>
    87 <input name="large_size_h" type="text" id="large_size_h" value="<?php form_option('large_size_h'); ?>" class="small-text" />
     87<input name="large_size_h" type="number" step="1" min="0" id="large_size_h" value="<?php form_option('large_size_h'); ?>" class="small-text" />
    8888</fieldset></td>
    8989</tr>
    … …  
    107107<td>
    108108<label for="embed_size_w"><?php _e('Width'); ?></label>
    109 <input name="embed_size_w" type="text" id="embed_size_w" value="<?php form_option('embed_size_w'); ?>" class="small-text" />
     109<input name="embed_size_w" type="number" step="1" min="0" id="embed_size_w" value="<?php form_option('embed_size_w'); ?>" class="small-text" />
    110110<label for="embed_size_h"><?php _e('Height'); ?></label>
    111 <input name="embed_size_h" type="text" id="embed_size_h" value="<?php form_option('embed_size_h'); ?>" class="small-text" />
    112 <?php if ( !empty($content_width) ) echo '<br />' . __("If the width value is left blank, embeds will default to the max width of your theme."); ?>
     111<input name="embed_size_h" type="number" step="1" min="0" id="embed_size_h" value="<?php form_option('embed_size_h'); ?>" class="small-text" />
     112<?php if ( ! empty( $content_width ) )
     113        echo '<p class="description">' . __( 'If the width value is left blank, embeds will default to the max width of your theme.' ) . '</p>';
     114?>
    113115</td>
    114116</tr>
    … …  
    123125<th scope="row"><label for="upload_path"><?php _e('Store uploads in this folder'); ?></label></th>
    124126<td><input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr(get_option('upload_path')); ?>" class="regular-text code" />
    125 <span class="description"><?php _e('Default is <code>wp-content/uploads</code>'); ?></span>
     127<p class="description"><?php _e('Default is <code>wp-content/uploads</code>'); ?></p>
    126128</td>
    127129</tr>
    … …  
    130132<th scope="row"><label for="upload_url_path"><?php _e('Full URL path to files'); ?></label></th>
    131133<td><input name="upload_url_path" type="text" id="upload_url_path" value="<?php echo esc_attr( get_option('upload_url_path')); ?>" class="regular-text code" />
    132 <span class="description"><?php _e('Configuring this is optional. By default, it should be blank.'); ?></span>
     134<p class="description"><?php _e('Configuring this is optional. By default, it should be blank.'); ?></p>
    133135</td>
    134136</tr>
Note: See TracChangeset for help on using the changeset viewer.