[wp-trac] [WordPress Trac] #54833: Twenty Eleven: screen_icon() and get_current_theme() are deprecated (was: Twenty Eleven: get_current_theme() is deprecated)

WordPress Trac noreply at wordpress.org
Sun Jan 16 10:01:56 UTC 2022


#54833: Twenty Eleven: screen_icon() and get_current_theme() are deprecated
----------------------------------------+------------------------------
 Reporter:  Presskopp                   |       Owner:  (none)
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Bundled Theme               |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+------------------------------

Comment (by Presskopp):

 {{{screen_icon()}}} is also deprecated so here's my patch:

 {{{#!php
 function twentyeleven_theme_options_render_page() {
         ?>
         <div class="wrap">
                 <?php $theme_name = wp_get_theme(); ?>
                 <h2>
 ...

 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54833#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list