Make WordPress Core


Ignore:
Timestamp:
06/04/2012 02:43:19 PM (13 years ago)
Author:
ryan
Message:

Back compat for bundled themes. Props nacin, SergeyBiryukov, kobenland. fixes #20768

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/showcase.php

    r20226 r20983  
    6767                    $counter_slider = 0;
    6868
    69                     $header_image_width  = get_theme_support( 'custom-header', 'width' );
    70                     ?>
     69                    // Compatibility with versions of WordPress prior to 3.4.
     70                    if ( function_exists( 'get_custom_header' ) )
     71                        $header_image_width = get_theme_support( 'custom-header', 'width' );
     72                    else
     73                        $header_image_width = HEADER_IMAGE_WIDTH;
     74                ?>
    7175
    7276                <div class="featured-posts">
Note: See TracChangeset for help on using the changeset viewer.