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

WordPress Trac noreply at wordpress.org
Fri Jul 1 14:25:26 UTC 2022


#54833: Twenty Eleven: screen_icon() and get_current_theme() are deprecated
--------------------------------------+-----------------------------
 Reporter:  Presskopp                 |       Owner:  SergeyBiryukov
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.1
Component:  Bundled Theme             |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"53626" 53626]:
 {{{
 #!CommitTicketReference repository="" revision="53626"
 Twenty Eleven: Replace deprecated function calls on theme options page.

 This includes:
 * Removing the deprecated `screen_icon()` function call.
 * Replacing the deprecated `get_current_theme()` function call with
 `get_option( 'current_theme' )`.
 * Using `wp_get_theme()->display( 'Name' )` explicitly instead of relying
 on `WP_Theme`'s `__toString()` method, for clarity.

 Follow-up to [6334], [20039], [20040], [20042], [20508], [26537], [41274].

 Props Presskopp, cu121, viralsampat, costdev, tomjdv, sabernhardt,
 SergeyBiryukov.
 Fixes #54833.
 }}}

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


More information about the wp-trac mailing list