[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:20:09 UTC 2022
#54833: Twenty Eleven: screen_icon() and get_current_theme() are deprecated
--------------------------------------+---------------------
Reporter: Presskopp | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.1
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses:
--------------------------------------+---------------------
Comment (by SergeyBiryukov):
Replying to [comment:6 SergeyBiryukov]:
> `wp_get_theme()` is replaced with `wp_get_theme()->get( 'Name' )`.
Minor update on this in [attachment:"54833.4.diff"],
`wp_get_theme()->display( 'Name' )` appears to be a more accurate
replacement that matches the `WP_Theme::__toString()` method, returning
the theme's translated name.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54833#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list