Make WordPress Core

Changeset 20508


Ignore:
Timestamp:
04/18/2012 05:32:53 PM (12 years ago)
Author:
nacin
Message:

Check for wp_get_theme() in Twenty Eleven before using it, for compatibility down to WP 3.2 when Twenty Eleven was first released. see #20103.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/inc/theme-options.php

    r20039 r20508  
    315315    <div class="wrap">
    316316        <?php screen_icon(); ?>
    317         <h2><?php printf( __( '%s Theme Options', 'twentyeleven' ), wp_get_theme() ); ?></h2>
     317        <?php $theme_name = function_exists( 'wp_get_theme' ) ? wp_get_theme() : get_current_theme(); ?>
     318        <h2><?php printf( __( '%s Theme Options', 'twentyeleven' ), $theme_name ); ?></h2>
    318319        <?php settings_errors(); ?>
    319320
Note: See TracChangeset for help on using the changeset viewer.