WordPress.org

Make WordPress Core

Changeset 14379


Ignore:
Timestamp:
05/03/2010 06:52:38 PM (11 years ago)
Author:
dd32
Message:

Add reset background image to theme default. Props lancewillett. See #12186

File:
1 edited

Legend:

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

    r14209 r14379  
    8888        check_admin_referer('custom-background');
    8989
    90         // @TODO: No UI entry point for this:
    9190        if ( isset($_POST['reset-background']) ) {
    9291            remove_theme_mods();
     
    189188<?php endif; ?>
    190189
     190<?php if ( defined( 'BACKGROUND_IMAGE' ) ) : // Show only if a default background image exists ?>
     191<tr valign="top">
     192<th scope="row"><?php _e('Restore Original Image'); ?></th>
     193<td><p><?php _e('This will restore the original background image. You will not be able to restore any customizations.') ?></p>
     194<form method="post" action="">
     195<?php wp_nonce_field('custom-background'); ?>
     196<input type="submit" class="button" name="reset-background" value="<?php esc_attr_e('Restore Original Image'); ?>" />
     197</form>
     198</td>
     199</tr>
     200</form>
     201<?php endif; ?>
    191202<tr valign="top">
    192203<th scope="row"><?php _e('Upload Image'); ?></th>
Note: See TracChangeset for help on using the changeset viewer.