WordPress.org

Make WordPress Core

Changeset 14578


Ignore:
Timestamp:
05/12/10 16:18:25 (4 years ago)
Author:
ryan
Message:

Remove only the background image, not all theme mods, when resetting the background to the default. Props ocean90. see #12186

File:
1 edited

Legend:

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

    r14577 r14578  
    8989 
    9090        if ( isset($_POST['reset-background']) ) { 
    91             remove_theme_mods(); 
     91            remove_theme_mod( 'background_image' ); 
    9292            return; 
    9393        } 
Note: See TracChangeset for help on using the changeset viewer.