Make WordPress Core

Ticket #25256: twentytwelve.3.diff

File twentytwelve.3.diff, 6.0 KB (added by ericlewis, 12 years ago)
  • src/wp-content/themes/twentytwelve/comments.php

     
    1212 * @since Twenty Twelve 1.0
    1313 */
    1414
    15 /**
    16  * If the current post is protected by a password and
     15/* If the current post is protected by a password and
    1716 * the visitor has not yet entered the password we will
    1817 * return early without loading the comments.
    1918 */
  • src/wp-content/themes/twentytwelve/functions.php

     
    2222 * @since Twenty Twelve 1.0
    2323 */
    2424
    25 /**
    26  * Set up the content width value based on the theme's design and stylesheet.
    27  */
     25// Set up the content width value based on the theme's design and stylesheet.
    2826if ( ! isset( $content_width ) )
    2927        $content_width = 625;
    3028
     
    4442 * @since Twenty Twelve 1.0
    4543 */
    4644function twentytwelve_setup() {
    47         /**
    48          * Makes Twenty Twelve available for translation.
     45        /* Makes Twenty Twelve available for translation.
    4946         *
    5047         * Translations can be added to the /languages/ directory.
    5148         * If you're building a theme based on Twenty Twelve, use a find and replace
     
    6562        // This theme uses wp_nav_menu() in one location.
    6663        register_nav_menu( 'primary', __( 'Primary Menu', 'twentytwelve' ) );
    6764
    68         /**
    69          * This theme supports custom background color and image,
     65        /* This theme supports custom background color and image,
    7066         * and here we also set up the default background color.
    7167         */
    7268        add_theme_support( 'custom-background', array(
     
    9793function twentytwelve_get_font_url() {
    9894        $font_url = '';
    9995
    100         /**
    101          * translators: If there are characters in your language that are not supported
     96        /* translators: If there are characters in your language that are not supported
    10297         * by Open Sans, translate this to 'off'. Do not translate into your own language.
    10398         */
    10499        if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {
    105100                $subsets = 'latin,latin-ext';
    106101
    107                 /**
    108                  * translators: To add an additional Open Sans character subset specific to your language,
     102                /* translators: To add an additional Open Sans character subset specific to your language,
    109103                 * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.
    110104                 */
    111105                $subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );
     
    138132function twentytwelve_scripts_styles() {
    139133        global $wp_styles;
    140134
    141         /**
    142          * Adds JavaScript to pages with the comment form to support
     135        /* Adds JavaScript to pages with the comment form to support
    143136         * sites with threaded comments (when in use).
    144137         */
    145138        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
    146139                wp_enqueue_script( 'comment-reply' );
    147140
    148         /**
    149          * Adds JavaScript for handling the navigation menu hide-and-show behavior.
    150          */
     141        // Adds JavaScript for handling the navigation menu hide-and-show behavior.
    151142        wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '1.0', true );
    152143
    153144        $font_url = twentytwelve_get_font_url();
    154145        if ( ! empty( $font_url ) )
    155146                wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null );
    156147
    157         /**
    158          * Loads our main stylesheet.
    159          */
     148        // Loads our main stylesheet.
    160149        wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() );
    161150
    162         /**
    163          * Loads the Internet Explorer specific stylesheet.
    164          */
     151        // Loads the Internet Explorer specific stylesheet.
    165152        wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20121010' );
    166153        $wp_styles->add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' );
    167154}
  • src/wp-content/themes/twentytwelve/image.php

     
    4848                                                <div class="entry-attachment">
    4949                                                        <div class="attachment">
    5050<?php
    51 /**
    52  * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
     51/* Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
    5352 * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
    5453 */
    5554$attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
  • src/wp-content/themes/twentytwelve/sidebar-front.php

     
    99 * @since Twenty Twelve 1.0
    1010 */
    1111
    12 /**
    13  * The front page widget area is triggered if any of the areas
     12/* The front page widget area is triggered if any of the areas
    1413 * have widgets. So let's check that first.
    1514 *
    1615 * If none of the sidebars have widgets, then let's bail early.
  • src/wp-content/themes/twentytwelve/tag.php

     
    2929                        /* Start the Loop */
    3030                        while ( have_posts() ) : the_post();
    3131
    32                                 /**
    33                                  * Include the post format-specific template for the content. If you want to
     32                                /* Include the post format-specific template for the content. If you want to
    3433                                 * this in a child theme then include a file called called content-___.php
    3534                                 * (where ___ is the post format) and that will be used instead.
    3635                                 */