Make WordPress Core

Ticket #25257: 25257.1.diff

File 25257.1.diff, 1.6 KB (added by celloexpressions, 12 years ago)

Fix a reference to Twenty Eleven, update customize function description and add comments to each action within twentyfourteen_customize_register.

  • wp-content/themes/twentyfourteen/functions.php

     
    274274
    275275/**
    276276 * Replace "[...]" (appended to automatically generated excerpts) with an
    277  * ellipsis and twentyeleven_continue_reading_link().
     277 * ellipsis and twentyfourteen_continue_reading_link().
    278278 *
    279279 * @since Twenty Fourteen 1.0
    280280 *
  • wp-content/themes/twentyfourteen/inc/customizer.php

     
    88 */
    99
    1010/**
    11  * Add postMessage support for site title and description for the Theme Customizer.
     11 * Implement Theme Customizer additions and adjustments.
    1212 *
    1313 * @since Twenty Fourteen 1.0
    1414 *
     
    1515 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
    1616 */
    1717function twentyfourteen_customize_register( $wp_customize ) {
     18        // Add postMessage support for site title and description.
    1819        $wp_customize->get_setting( 'blogname' )->transport        = 'postMessage';
    1920        $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
    20 
     21       
     22        // Add the custom accent color setting and control.
    2123        $wp_customize->add_setting( 'accent_color', array(
    2224                'default'           => '#24890d',
    2325                'sanitize_callback' => 'twentyfourteen_generate_accent_colors',