WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/24/2012 04:35:13 AM (8 years ago)
Author:
koopersmith
Message:

Theme Customizer: First pass at image controls. Use header_image as the initial case. Add a 'removed' control param for upload/image controls to map 'removed' to a value other than the empty string. see #19910.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-customize.php

    r20276 r20278  
    537537            'label'          => 'Header Image',
    538538            'section'        => 'header',
    539             'control'        => 'upload',
     539            'control'        => 'image',
    540540            'default'        => get_theme_support( 'custom-header', 'default-image' ),
    541541            'control_params' => array(
    542542                'context'        => 'custom-header',
     543                'removed'        => 'remove-header',
     544                'get_url'        => 'get_header_image',
    543545            ),
    544546        ) );
Note: See TracChangeset for help on using the changeset viewer.