Make WordPress Core

Ticket #54833: 54833.diff

File 54833.diff, 716 bytes (added by cu121, 3 years ago)

Removed the deprecated screen_size(), since it does produce any output during render, get_current_theme() replaced with static value, since a theme name is static.

  • src/wp-content/themes/twentyeleven/inc/theme-options.php

    diff --git a/src/wp-content/themes/twentyeleven/inc/theme-options.php b/src/wp-content/themes/twentyeleven/inc/theme-options.php
    index 78be3b5aad..af9bd87fb1 100644
    a b function twentyeleven_settings_field_layout() { 
    341341function twentyeleven_theme_options_render_page() {
    342342        ?>
    343343        <div class="wrap">
    344                 <?php screen_icon(); ?>
    345                 <?php $theme_name = function_exists( 'wp_get_theme' ) ? wp_get_theme() : get_current_theme(); ?>
     344                <?php $theme_name = function_exists( 'wp_get_theme' ) ? wp_get_theme() : 'Twenty Eleven'; ?>
    346345                <h2>
    347346                <?php
    348347                /* translators: %s: Theme name. */