mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-24 17:52:53 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@53626 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
28720264d8
commit
e2bf96e4af
@ -339,10 +339,9 @@ function twentyeleven_settings_field_layout() {
|
||||
* @since Twenty Eleven 1.2
|
||||
*/
|
||||
function twentyeleven_theme_options_render_page() {
|
||||
$theme_name = function_exists( 'wp_get_theme' ) ? wp_get_theme()->display( 'Name' ) : get_option( 'current_theme' );
|
||||
?>
|
||||
<div class="wrap">
|
||||
<?php screen_icon(); ?>
|
||||
<?php $theme_name = function_exists( 'wp_get_theme' ) ? wp_get_theme() : get_current_theme(); ?>
|
||||
<h2>
|
||||
<?php
|
||||
/* translators: %s: Theme name. */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user