Make WordPress Core


Ignore:
Timestamp:
02/18/2010 03:12:05 AM (15 years ago)
Author:
ryan
Message:

Add defaults for background option radios. see #12186

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-background.php

    r13186 r13189  
    173173<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Position' ); ?></span></legend>
    174174<label>
    175 <input name="background-position" type="radio" value="left" <?php checked('left', get_theme_mod('background_position')); ?> />
     175<input name="background-position" type="radio" value="left" <?php checked('left', get_theme_mod('background_position', 'left')); ?> />
    176176<?php _e('Left') ?>
    177177</label>
    178178<label>
    179 <input name="background-position" type="radio" value="center" <?php checked('center', get_theme_mod('background_position')); ?> />
     179<input name="background-position" type="radio" value="center" <?php checked('center', get_theme_mod('background_position', 'left')); ?> />
    180180<?php _e('Center') ?>
    181181</label>
    182182<label>
    183 <input name="background-position" type="radio" value="right" <?php checked('right', get_theme_mod('background_position')); ?> />
     183<input name="background-position" type="radio" value="right" <?php checked('right', get_theme_mod('background_position', 'left')); ?> />
    184184<?php _e('Right') ?>
    185185</label>
     
    188188<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Repeat' ); ?></span></legend>
    189189<label>
    190 <input name="background-repeat" type="radio" value="no-repeat" <?php checked('no-repeat', get_theme_mod('background_repeat')); ?> />
     190<input name="background-repeat" type="radio" value="no-repeat" <?php checked('no-repeat', get_theme_mod('background_repeat', 'repeat')); ?> />
    191191<?php _e('No repeat') ?>
    192192</label>
    193193<label>
    194 <input name="background-repeat" type="radio" value="repeat" <?php checked('repeat', get_theme_mod('background_repeat')); ?> />
     194<input name="background-repeat" type="radio" value="repeat" <?php checked('repeat', get_theme_mod('background_repeat', 'repeat')); ?> />
    195195<?php _e('Tile') ?>
    196196</label>
     
    199199<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Attachment' ); ?></span></legend>
    200200<label>
    201 <input name="background-attachment" type="radio" value="scroll" <?php checked('scroll', get_theme_mod('background_attachment')); ?> />
     201<input name="background-attachment" type="radio" value="scroll" <?php checked('scroll', get_theme_mod('background_attachment', 'fixed')); ?> />
    202202<?php _e('Scroll') ?>
    203203</label>
    204204<label>
    205 <input name="background-attachment" type="radio" value="fixed" <?php checked('fixed', get_theme_mod('background_attachment')); ?> />
     205<input name="background-attachment" type="radio" value="fixed" <?php checked('fixed', get_theme_mod('background_attachment', 'fixed')); ?> />
    206206<?php _e('Fixed') ?>
    207207</label>
Note: See TracChangeset for help on using the changeset viewer.