forked from mirror/_s
_s: Remove notice in Theme Options screen in WordPress 3.4. props @corvannoorloos
* Replace deprecated get_current_theme() with wp_get_theme() * Providing back-compat with prior versions of WordPress. git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9647 d957f892-c61d-0410-b221-f235e6eecf30
This commit is contained in:
parent
7484b4cf6b
commit
c4a02323c6
|
@ -253,7 +253,8 @@ function _s_theme_options_render_page() {
|
|||
?>
|
||||
<div class="wrap">
|
||||
<?php screen_icon(); ?>
|
||||
<h2><?php printf( __( '%s Theme Options', '_s' ), get_current_theme() ); ?></h2>
|
||||
<?php $theme_name = function_exists( 'wp_get_theme' ) ? wp_get_theme() : get_current_theme(); ?>
|
||||
<h2><?php printf( __( '%s Theme Options', '_s' ), $theme_name ); ?></h2>
|
||||
<?php settings_errors(); ?>
|
||||
|
||||
<form method="post" action="options.php">
|
||||
|
|
Reference in New Issue