Ticket #17198: 17198_options_to_settings_text_change.diff
File 17198_options_to_settings_text_change.diff, 2.2 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentyeleven/inc/theme-options.php
1 1 <?php 2 2 /** 3 * Twenty Eleven Theme Options3 * Twenty Eleven Theme Settings 4 4 * 5 5 * @package WordPress 6 6 * @subpackage Twenty Eleven … … 8 8 */ 9 9 10 10 /** 11 * Properly enqueue styles and scripts for our theme options page.11 * Properly enqueue styles and scripts for our theme settings page. 12 12 * 13 13 * This function is attached to the admin_enqueue_scripts action hook. 14 14 * 15 15 * @since Twenty Eleven 1.0 16 16 * 17 17 * @param string $hook_suffix The action passes the current page to the function. We don't 18 * do anything if we're not on our theme options page.18 * do anything if we're not on our theme settings page. 19 19 */ 20 20 function twentyeleven_admin_enqueue_scripts( $hook_suffix ) { 21 21 if ( $hook_suffix != 'appearance_page_theme_options' ) … … 55 55 add_action( 'admin_init', 'twentyeleven_theme_options_init' ); 56 56 57 57 /** 58 * Add our theme options page to the admin menu.58 * Add our theme settings page to the admin menu. 59 59 * 60 60 * This function is attached to the admin_menu action hook. 61 61 * … … 63 63 */ 64 64 function twentyeleven_theme_options_add_page() { 65 65 add_theme_page( 66 __( 'Theme Options', 'twentyeleven' ), // Name of page67 __( 'Theme Options', 'twentyeleven' ), // Label in menu66 __( 'Theme Settings', 'twentyeleven' ), // Name of page 67 __( 'Theme Settings', 'twentyeleven' ), // Label in menu 68 68 'edit_theme_options', // Capability required 69 69 'theme_options', // Menu slug, used to uniquely identify the page 70 70 'theme_options_render_page' // Function that renders the options page … … 154 154 ?> 155 155 <div class="wrap"> 156 156 <?php screen_icon(); ?> 157 <h2><?php printf( __( '%s Theme Options', 'twentyeleven' ), get_current_theme() ); ?></h2>157 <h2><?php printf( __( '%s Theme Settings', 'twentyeleven' ), get_current_theme() ); ?></h2> 158 158 <?php settings_errors(); ?> 159 159 160 160 <form method="post" action="options.php">