Make WordPress Core

Changeset 21497


Ignore:
Timestamp:
08/10/2012 08:15:06 PM (12 years ago)
Author:
ryan
Message:

Avoid fatal error in the customizer when the current theme doesn't support custom headers. Props c3mdigital. fixes #21515

File:
1 edited

Legend:

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

    r21386 r21497  
    751751    public function prepare_control() {
    752752        global $custom_image_header;
     753        if ( empty( $custom_image_header ) )
     754            return parent::prepare_control();
    753755
    754756        // Process default headers and uploaded headers.
Note: See TracChangeset for help on using the changeset viewer.