WordPress.org

Make WordPress Core

Ticket #20871: 20871.diff

File 20871.diff, 464 bytes (added by kovshenin, 3 years ago)

Use remove_theme_mod when removing custom header.

  • wp-admin/custom-header.php

     
    238238                if ( isset( $_POST['removeheader'] ) ) { 
    239239                        check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' ); 
    240240                        set_theme_mod( 'header_image', 'remove-header' ); 
     241                        remove_theme_mod( 'header_image_data' ); 
    241242                        return; 
    242243                } 
    243244