Twenty Eleven: Prefix theme_options_render_page(). props chipbennett, see #18045. for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fcc103f0b2
commit
01060c0689
|
@ -77,11 +77,11 @@ add_filter( 'option_page_capability_twentyeleven_options', 'twentyeleven_option_
|
||||||
*/
|
*/
|
||||||
function twentyeleven_theme_options_add_page() {
|
function twentyeleven_theme_options_add_page() {
|
||||||
$theme_page = add_theme_page(
|
$theme_page = add_theme_page(
|
||||||
__( 'Theme Options', 'twentyeleven' ), // Name of page
|
__( 'Theme Options', 'twentyeleven' ), // Name of page
|
||||||
__( 'Theme Options', 'twentyeleven' ), // Label in menu
|
__( 'Theme Options', 'twentyeleven' ), // Label in menu
|
||||||
'edit_theme_options', // Capability required
|
'edit_theme_options', // Capability required
|
||||||
'theme_options', // Menu slug, used to uniquely identify the page
|
'theme_options', // Menu slug, used to uniquely identify the page
|
||||||
'theme_options_render_page' // Function that renders the options page
|
'twentyeleven_theme_options_render_page' // Function that renders the options page
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( ! $theme_page )
|
if ( ! $theme_page )
|
||||||
|
@ -204,9 +204,9 @@ function twentyeleven_get_theme_options() {
|
||||||
/**
|
/**
|
||||||
* Returns the options array for Twenty Eleven.
|
* Returns the options array for Twenty Eleven.
|
||||||
*
|
*
|
||||||
* @since Twenty Eleven 1.0
|
* @since Twenty Eleven 1.2
|
||||||
*/
|
*/
|
||||||
function theme_options_render_page() {
|
function twentyeleven_theme_options_render_page() {
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<?php screen_icon(); ?>
|
<?php screen_icon(); ?>
|
||||||
|
|
Loading…
Reference in New Issue