WordPress.org

Make WordPress Core

Ticket #42724: 42724.diff

File 42724.diff, 4.4 KB (added by obenland, 20 months ago)
  • src/wp-admin/css/common.css

     
    39313931        }
    39323932}
    39333933
    3934 .options-media-php br {
    3935         display: none;
    3936 }
    3937 
    39383934@media screen and (max-width: 375px) {
    3939         .options-media-php input[type="number"][name*="_size_"] {
    3940                 margin: 5px 0;
    3941         }
    3942         .options-media-php label[for*="_size_h"]:before {
    3943                 content: '';
    3944                 display: block;
    3945         }
    3946         .options-media-php br {
     3935        .options-media-php label[for*="_size_"] {
    39473936                display: block;
    39483937        }
    39493938}
  • src/wp-admin/options-media.php

     
    5555<tr>
    5656<th scope="row"><?php _e( 'Thumbnail size' ); ?></th>
    5757<td>
    58 <label for="thumbnail_size_w"><?php _e( 'Width' ); ?></label>
    59 <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" />
    60 <label for="thumbnail_size_h"><?php _e( 'Height' ); ?></label>
    61 <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" />
    62 <p><input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked( '1', get_option( 'thumbnail_crop' ) ); ?>/>
    63 <label for="thumbnail_crop"><?php _e( 'Crop thumbnail to exact dimensions (normally thumbnails are proportional)' ); ?></label></p>
     58        <fieldset>
     59                <label for="thumbnail_size_w">
     60                        <?php _e( 'Width' ); ?>
     61                        <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" />
     62                </label>
     63                <label for="thumbnail_size_h">
     64                        <?php _e( 'Height' ); ?>
     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" />
     66                </label>
     67                <p><input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked( '1', get_option( 'thumbnail_crop' ) ); ?>/>
     68                <label for="thumbnail_crop"><?php _e( 'Crop thumbnail to exact dimensions (normally thumbnails are proportional)' ); ?></label></p>
     69        </fieldset>
    6470</td>
    6571</tr>
    6672
    6773<tr>
    6874<th scope="row"><?php _e( 'Medium size' ); ?></th>
    6975<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Medium size' ); ?></span></legend>
    70 <label for="medium_size_w"><?php _e( 'Max Width' ); ?></label>
    71 <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" />
    72 <br />
    73 <label for="medium_size_h"><?php _e( 'Max Height' ); ?></label>
    74 <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" />
     76<label for="medium_size_w">
     77        <?php _e( 'Max Width' ); ?>
     78        <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" />
     79</label>
     80<label for="medium_size_h">
     81        <?php _e( 'Max Height' ); ?>
     82        <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" />
     83</label>
    7584</fieldset></td>
    7685</tr>
    7786
    7887<tr>
    7988<th scope="row"><?php _e( 'Large size' ); ?></th>
    8089<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Large size' ); ?></span></legend>
    81 <label for="large_size_w"><?php _e( 'Max Width' ); ?></label>
    82 <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" />
    83 <br />
    84 <label for="large_size_h"><?php _e( 'Max Height' ); ?></label>
    85 <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" />
     90<label for="large_size_w">
     91        <?php _e( 'Max Width' ); ?>
     92        <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" />
     93</label>
     94<label for="large_size_h">
     95        <?php _e( 'Max Height' ); ?>
     96        <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" />
     97</label>
    8698</fieldset></td>
    8799</tr>
    88100