Make WordPress Core

Ticket #54833: 54833.3.diff

File 54833.3.diff, 722 bytes (added by SergeyBiryukov, 3 years ago)
  • src/wp-content/themes/twentyeleven/inc/theme-options.php

     
    339339 * @since Twenty Eleven 1.2
    340340 */
    341341function twentyeleven_theme_options_render_page() {
     342        $theme_name = function_exists( 'wp_get_theme' ) ? wp_get_theme()->get( 'Name' ) : get_option( 'current_theme' );
    342343        ?>
    343344        <div class="wrap">
    344                 <?php screen_icon(); ?>
    345                 <?php $theme_name = function_exists( 'wp_get_theme' ) ? wp_get_theme() : get_current_theme(); ?>
    346345                <h2>
    347346                <?php
    348347                /* translators: %s: Theme name. */