WordPress.org

Make WordPress Core

Ticket #12186: 12186.3.diff

File 12186.3.diff, 2.9 KB (added by JohnONolan, 4 years ago)

Converts screen to using radio buttons in place of dropdown menu for background repeat options. Amends two strings to be clearer on what happens when a background image is removed.

  • Applications/XAMPP/xamppfiles/htdocs/trunk/wp-admin/custom-background.php

     
    195195<form method="post" action=""> 
    196196<?php wp_nonce_field('custom-background-remove', '_wpnonce-custom-background-remove'); ?> 
    197197<input type="submit" class="button" name="remove-background" value="<?php esc_attr_e('Remove Background Image'); ?>" /><br/> 
    198 <?php _e('This will remove the background image. You will not be able to restore any customizations.') ?> 
     198<?php _e('This will remove the background image. You will not be able to restore it.') ?> 
    199199</form> 
    200200</td> 
    201201</tr> 
     
    208208<form method="post" action=""> 
    209209<?php wp_nonce_field('custom-background-reset', '_wpnonce-custom-background-reset'); ?> 
    210210<input type="submit" class="button" name="reset-background" value="<?php esc_attr_e('Restore Original Image'); ?>" /><br/> 
    211 <?php _e('This will restore the original background image. You will not be able to restore any customizations.') ?> 
     211<?php _e('This will restore the original background image. You will not be able to restore any custom images.') ?> 
    212212</form> 
    213213</td> 
    214214</tr> 
     
    262262<tr valign="top"> 
    263263<th scope="row"><?php _e( 'Repeat' ); ?></th> 
    264264<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Repeat' ); ?></span></legend> 
    265 <label> 
    266 <select name="background-repeat"> 
    267         <option value="no-repeat"<?php selected('no-repeat', get_theme_mod('background_repeat', 'repeat')); ?> ><?php _e('No repeat'); ?></option> 
    268         <option value="repeat"<?php selected('repeat', get_theme_mod('background_repeat', 'repeat')); ?>><?php _e('Tile'); ?></option> 
    269         <option value="repeat-x"<?php selected('repeat-x', get_theme_mod('background_repeat', 'repeat')); ?>><?php _e('Tile Horizontally'); ?></option> 
    270         <option value="repeat-y"<?php selected('repeat-y', get_theme_mod('background_repeat', 'repeat')); ?>><?php _e('Tile Vertically'); ?></option> 
    271 </select> 
     265<label>  
     266<input name="background-repeat" type="radio" value="no-repeat"<?php checked('no-repeat', get_theme_mod('background_repeat', 'repeat')); ?> /> 
     267<?php _e('No repeat'); ?> 
    272268</label> 
     269<label>  
     270<input name="background-repeat" type="radio" value="repeat"<?php checked('repeat', get_theme_mod('background_repeat', 'repeat')); ?> /> 
     271<?php _e('Tile'); ?> 
     272</label> 
     273<label>  
     274<input name="background-repeat" type="radio" value="repeat-x"<?php checked('repeat-x', get_theme_mod('background_repeat', 'repeat')); ?> /> 
     275<?php _e('Tile Horizontally'); ?> 
     276</label> 
     277<label>  
     278<input name="background-repeat" type="radio" value="repeat-y"<?php checked('repeat-y', get_theme_mod('background_repeat', 'repeat')); ?> /> 
     279<?php _e('Tile Vertically'); ?> 
     280</label> 
    273281</fieldset></td> 
    274282</tr> 
    275283