Make WordPress Core

Ticket #17198: 17198_options_to_settings_text_change.diff

File 17198_options_to_settings_text_change.diff, 2.2 KB (added by michaelh, 12 years ago)

Change options to settings

  • wp-content/themes/twentyeleven/inc/theme-options.php

     
    11<?php
    22/**
    3  * Twenty Eleven Theme Options
     3 * Twenty Eleven Theme Settings
    44 *
    55 * @package WordPress
    66 * @subpackage Twenty Eleven
     
    88 */
    99
    1010/**
    11  * Properly enqueue styles and scripts for our theme options page.
     11 * Properly enqueue styles and scripts for our theme settings page.
    1212 *
    1313 * This function is attached to the admin_enqueue_scripts action hook.
    1414 *
    1515 * @since Twenty Eleven 1.0
    1616 *
    1717 * @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.
    1919 */
    2020function twentyeleven_admin_enqueue_scripts( $hook_suffix ) {
    2121        if ( $hook_suffix != 'appearance_page_theme_options' )
     
    5555add_action( 'admin_init', 'twentyeleven_theme_options_init' );
    5656
    5757/**
    58  * Add our theme options page to the admin menu.
     58 * Add our theme settings page to the admin menu.
    5959 *
    6060 * This function is attached to the admin_menu action hook.
    6161 *
     
    6363 */
    6464function twentyeleven_theme_options_add_page() {
    6565        add_theme_page(
    66                 __( 'Theme Options', 'twentyeleven' ), // Name of page
    67                 __( 'Theme Options', 'twentyeleven' ), // Label in menu
     66                __( 'Theme Settings', 'twentyeleven' ), // Name of page
     67                __( 'Theme Settings', 'twentyeleven' ), // Label in menu
    6868                'edit_theme_options',                  // Capability required
    6969                'theme_options',                       // Menu slug, used to uniquely identify the page
    7070                'theme_options_render_page'            // Function that renders the options page
     
    154154        ?>
    155155        <div class="wrap">
    156156                <?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>
    158158                <?php settings_errors(); ?>
    159159
    160160                <form method="post" action="options.php">