WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/25/2012 04:53:32 PM (9 years ago)
Author:
lancewillett
Message:

Twenty Twelve: review and clarify code commenting and documentation. Props jorbin and obenland. See #21675.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/inc/theme-options.php

    r21448 r21617  
    2727
    2828    /**
    29      * Constructor
     29     * Constructor.
    3030     *
    3131     * @access public
     
    4545
    4646    /**
    47      * Register the form setting for our options array.
     47     * Registers the form setting for our options array.
    4848     *
    4949     * This function is attached to the admin_init action hook.
     
    8787
    8888    /**
    89      * Add our theme options page to the admin menu.
     89     * Adds our theme options page to the admin menu.
    9090     *
    9191     * This function is attached to the admin_menu action hook.
     
    149149
    150150    /**
    151      * Returns the options array.
     151     * Displays the theme options page.
    152152     *
    153153     * @uses get_current_theme() for back compat, fallback for < 3.4
     
    176176
    177177    /**
    178      * Sanitize and validate form input. Accepts an array, return a sanitized array.
     178     * Sanitizes and validates form input.
    179179     *
    180180     * @see options_init()
     
    196196
    197197    /**
    198      * Implement Twenty Twelve theme options into Theme Customizer.
     198     * Implements Twenty Twelve theme options into Theme Customizer.
    199199     *
    200200     * @since Twenty Twelve 1.0
     
    234234
    235235    /**
    236      * Bind JS handlers to make Theme Customizer preview reload changes asynchronously.
     236     * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
    237237     *
    238238     * @since Twenty Twelve 1.0
     
    250250
    251251    /**
    252      * Create path to load fonts CSS file with correct protocol.
     252     * Creates path to load fonts CSS file with correct protocol.
    253253     *
    254254     * @since Twenty Twelve 1.0
Note: See TracChangeset for help on using the changeset viewer.