Make WordPress Core

Ticket #21675: 2012docs.diff

File 2012docs.diff, 2.7 KB (added by jorbin, 13 years ago)
  • wp-content/themes/twentytwelve/functions.php

     
    3232        $content_width = 625;
    3333
    3434/**
    35  * Sets up theme defaults and registers support for various WordPress features.
     35 * Sets up theme defaults and registers support for various (but not all) WordPress features.
    3636 *
    3737 * @uses load_theme_textdomain() For translation/localization support.
    3838 * @uses add_theme_support() To add support for post thumbnails, automatic feed links, custom headers
     
    175175add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' );
    176176
    177177/**
    178  * Register our single widget area.
     178 * Register our main widget area and the homepage widget areas
    179179 *
    180180 * @since Twenty Twelve 1.0
    181181 */
     
    395395                $content_width = 960;
    396396        }
    397397}
    398 add_action( 'template_redirect', 'twentytwelve_content_width' );
    399  No newline at end of file
     398add_action( 'template_redirect', 'twentytwelve_content_width' );
  • wp-content/themes/twentytwelve/inc/theme-options.php

     
    148148        }
    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
    154154         * @access public
     
    176176
    177177        /**
    178178         * Sanitize and validate form input. Accepts an array, return a sanitized array.
     179     *
     180     * If you try to be a sneaky anteater, we're turning your fonts off
    179181         *
    180182         * @see options_init()
    181183         * @access public
     
    260262                $protocol = is_ssl() ? 'https' : 'http';
    261263                return $protocol . '://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700';
    262264        }
    263 }
    264  No newline at end of file
     265}
  • wp-content/themes/twentytwelve/inc/custom-header.php

     
    128128/**
    129129 * Custom header image markup displayed on the Appearance > Header admin panel.
    130130 *
     131 * This is a custom template tag that outputs HTML
     132 *
    131133 * @since Twenty Twelve 1.0
    132134 */
    133135function twentytwelve_admin_header_image() {
     
    146148                        <img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
    147149                <?php endif; ?>
    148150        </div>
    149 <?php }
    150  No newline at end of file
     151<?php }