Make WordPress Core

Ticket #25256: twentytwelve.4.diff

File twentytwelve.4.diff, 4.9 KB (added by DrewAPicture, 12 years ago)
  • src/wp-content/themes/twentytwelve/comments.php

     
    1212 * @since Twenty Twelve 1.0
    1313 */
    1414
    15 /**
     15/*
    1616 * If the current post is protected by a password and
    1717 * the visitor has not yet entered the password we will
    1818 * return early without loading the comments.
  • 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         /**
     45        /*
    4846         * Makes Twenty Twelve available for translation.
    4947         *
    5048         * Translations can be added to the /languages/ directory.
     
    6563        // This theme uses wp_nav_menu() in one location.
    6664        register_nav_menu( 'primary', __( 'Primary Menu', 'twentytwelve' ) );
    6765
    68         /**
     66        /*
    6967         * This theme supports custom background color and image,
    7068         * and here we also set up the default background color.
    7169         */
     
    9795function twentytwelve_get_font_url() {
    9896        $font_url = '';
    9997
    100         /**
     98        /*
    10199         * translators: If there are characters in your language that are not supported
    102100         * by Open Sans, translate this to 'off'. Do not translate into your own language.
    103101         */
    104102        if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {
    105103                $subsets = 'latin,latin-ext';
    106104
    107                 /**
     105                /*
    108106                 * translators: To add an additional Open Sans character subset specific to your language,
    109107                 * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.
    110108                 */
     
    138136function twentytwelve_scripts_styles() {
    139137        global $wp_styles;
    140138
    141         /**
     139        /*
    142140         * Adds JavaScript to pages with the comment form to support
    143141         * sites with threaded comments (when in use).
    144142         */
    145143        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
    146144                wp_enqueue_script( 'comment-reply' );
    147145
    148         /**
    149          * Adds JavaScript for handling the navigation menu hide-and-show behavior.
    150          */
     146        // Adds JavaScript for handling the navigation menu hide-and-show behavior.
    151147        wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '1.0', true );
    152148
    153149        $font_url = twentytwelve_get_font_url();
    154150        if ( ! empty( $font_url ) )
    155151                wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null );
    156152
    157         /**
    158          * Loads our main stylesheet.
    159          */
     153        // Loads our main stylesheet.
    160154        wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() );
    161155
    162         /**
    163          * Loads the Internet Explorer specific stylesheet.
    164          */
     156        // Loads the Internet Explorer specific stylesheet.
    165157        wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20121010' );
    166158        $wp_styles->add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' );
    167159}
  • src/wp-content/themes/twentytwelve/image.php

     
    4848                                                <div class="entry-attachment">
    4949                                                        <div class="attachment">
    5050<?php
    51 /**
     51/*
    5252 * 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,
    5353 * 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
    5454 */
  • src/wp-content/themes/twentytwelve/sidebar-front.php

     
    99 * @since Twenty Twelve 1.0
    1010 */
    1111
    12 /**
     12/*
    1313 * The front page widget area is triggered if any of the areas
    1414 * have widgets. So let's check that first.
    1515 *
  • src/wp-content/themes/twentytwelve/tag.php

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