Size options on options-media.php are allowed to be 0 or otherwise empty. see #17863.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c2fc56c67c
commit
7bf5069573
|
@ -60,9 +60,9 @@ include('./admin-header.php');
|
|||
<th scope="row"><?php _e('Thumbnail size') ?></th>
|
||||
<td>
|
||||
<label for="thumbnail_size_w"><?php _e('Width'); ?></label>
|
||||
<input name="thumbnail_size_w" type="number" step="1" min="1" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" class="small-text" />
|
||||
<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" />
|
||||
<label for="thumbnail_size_h"><?php _e('Height'); ?></label>
|
||||
<input name="thumbnail_size_h" type="number" step="1" min="1" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" class="small-text" /><br />
|
||||
<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 />
|
||||
<input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked('1', get_option('thumbnail_crop')); ?>/>
|
||||
<label for="thumbnail_crop"><?php _e('Crop thumbnail to exact dimensions (normally thumbnails are proportional)'); ?></label>
|
||||
</td>
|
||||
|
@ -72,9 +72,9 @@ include('./admin-header.php');
|
|||
<th scope="row"><?php _e('Medium size') ?></th>
|
||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e('Medium size'); ?></span></legend>
|
||||
<label for="medium_size_w"><?php _e('Max Width'); ?></label>
|
||||
<input name="medium_size_w" type="number" step="1" min="1" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" class="small-text" />
|
||||
<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" />
|
||||
<label for="medium_size_h"><?php _e('Max Height'); ?></label>
|
||||
<input name="medium_size_h" type="number" step="1" min="1" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" class="small-text" />
|
||||
<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" />
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
|
||||
|
@ -82,9 +82,9 @@ include('./admin-header.php');
|
|||
<th scope="row"><?php _e('Large size') ?></th>
|
||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e('Large size'); ?></span></legend>
|
||||
<label for="large_size_w"><?php _e('Max Width'); ?></label>
|
||||
<input name="large_size_w" type="number" step="1" min="1" id="large_size_w" value="<?php form_option('large_size_w'); ?>" class="small-text" />
|
||||
<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" />
|
||||
<label for="large_size_h"><?php _e('Max Height'); ?></label>
|
||||
<input name="large_size_h" type="number" step="1" min="1" id="large_size_h" value="<?php form_option('large_size_h'); ?>" class="small-text" />
|
||||
<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" />
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
|
||||
|
@ -106,9 +106,9 @@ include('./admin-header.php');
|
|||
<th scope="row"><?php _e('Maximum embed size') ?></th>
|
||||
<td>
|
||||
<label for="embed_size_w"><?php _e('Width'); ?></label>
|
||||
<input name="embed_size_w" type="number" step="1" min="1" id="embed_size_w" value="<?php form_option('embed_size_w'); ?>" class="small-text" />
|
||||
<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" />
|
||||
<label for="embed_size_h"><?php _e('Height'); ?></label>
|
||||
<input name="embed_size_h" type="number" step="1" min="1" id="embed_size_h" value="<?php form_option('embed_size_h'); ?>" class="small-text" />
|
||||
<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" />
|
||||
<?php if ( !empty($content_width) ) echo '<br />' . __("If the width value is left blank, embeds will default to the max width of your theme."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue