Ticket #25256: twentythirteen.3.diff
File twentythirteen.3.diff, 5.7 KB (added by , 12 years ago) |
---|
-
src/wp-content/themes/twentythirteen/author.php
17 17 <?php if ( have_posts() ) : ?> 18 18 19 19 <?php 20 /** 21 * Queue the first post, that way we know what author 20 /* Queue the first post, that way we know what author 22 21 * we're dealing with (if that is the case). 23 22 * 24 23 * We reset this later so we can run the loop … … 32 31 </header><!-- .archive-header --> 33 32 34 33 <?php 35 /** 36 * Since we called the_post() above, we need to 34 /* Since we called the_post() above, we need to 37 35 * rewind the loop back to the beginning that way 38 36 * we can run the loop properly, in full. 39 37 */ -
src/wp-content/themes/twentythirteen/comments.php
9 9 * @since Twenty Thirteen 1.0 10 10 */ 11 11 12 /** 13 * If the current post is protected by a password and the visitor has not yet 12 /* If the current post is protected by a password and the visitor has not yet 14 13 * entered the password we will return early without loading the comments. 15 14 */ 16 15 if ( post_password_required() ) -
src/wp-content/themes/twentythirteen/functions.php
23 23 * @since Twenty Thirteen 1.0 24 24 */ 25 25 26 /** 27 * Set up the content width value based on the theme's design. 26 /* Set up the content width value based on the theme's design. 28 27 * 29 28 * @see twentythirteen_content_width() for template-specific adjustments. 30 29 */ … … 60 59 * @return void 61 60 */ 62 61 function twentythirteen_setup() { 63 /** 64 * Makes Twenty Thirteen available for translation. 62 /* Makes Twenty Thirteen available for translation. 65 63 * 66 64 * Translations can be added to the /languages/ directory. 67 65 * If you're building a theme based on Twenty Thirteen, use a find and … … 70 68 */ 71 69 load_theme_textdomain( 'twentythirteen', get_template_directory() . '/languages' ); 72 70 73 /** 74 * This theme styles the visual editor to resemble the theme style, 71 /* This theme styles the visual editor to resemble the theme style, 75 72 * specifically font, colors, icons, and column width. 76 73 */ 77 74 add_editor_style( array( 'css/editor-style.css', 'fonts/genericons.css', twentythirteen_fonts_url() ) ); … … 79 76 // Adds RSS feed links to <head> for posts and comments. 80 77 add_theme_support( 'automatic-feed-links' ); 81 78 82 /** 83 * Switches default core markup for search form, comment form, 79 /* Switches default core markup for search form, comment form, 84 80 * and comments to output valid HTML5. 85 81 */ 86 82 add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) ); 87 83 88 /** 89 * This theme supports all available post formats by default. 84 /* This theme supports all available post formats by default. 90 85 * See http://codex.wordpress.org/Post_Formats 91 86 */ 92 87 add_theme_support( 'post-formats', array( … … 96 91 // This theme uses wp_nav_menu() in one location. 97 92 register_nav_menu( 'primary', __( 'Navigation Menu', 'twentythirteen' ) ); 98 93 99 /** 100 * This theme uses a custom image size for featured images, displayed on 94 /* This theme uses a custom image size for featured images, displayed on 101 95 * "standard" posts and pages. 102 96 */ 103 97 add_theme_support( 'post-thumbnails' ); … … 121 115 function twentythirteen_fonts_url() { 122 116 $fonts_url = ''; 123 117 124 /** 125 * Translators: If there are characters in your language that are not 118 /* Translators: If there are characters in your language that are not 126 119 * supported by Source Sans Pro, translate this to 'off'. Do not translate 127 120 * into your own language. 128 121 */ 129 122 $source_sans_pro = _x( 'on', 'Source Sans Pro font: on or off', 'twentythirteen' ); 130 123 131 /** 132 * Translators: If there are characters in your language that are not 124 /* Translators: If there are characters in your language that are not 133 125 * supported by Bitter, translate this to 'off'. Do not translate into your 134 126 * own language. 135 127 */ … … 162 154 * @return void 163 155 */ 164 156 function twentythirteen_scripts_styles() { 165 /** 166 * Adds JavaScript to pages with the comment form to support 157 /* Adds JavaScript to pages with the comment form to support 167 158 * sites with threaded comments (when in use). 168 159 */ 169 160 if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) … … 413 404 $next_attachment_url = wp_get_attachment_url(); 414 405 $post = get_post(); 415 406 416 /** 417 * Grab the IDs of all the image attachments in a gallery so we can get the URL 407 /* Grab the IDs of all the image attachments in a gallery so we can get the URL 418 408 * of the next adjacent image in a gallery, or the first image (if we're 419 409 * looking at the last image in a gallery), or, in a gallery of one, just the 420 410 * link to that image file. -
src/wp-content/themes/twentythirteen/inc/custom-header.php
40 40 41 41 add_theme_support( 'custom-header', $args ); 42 42 43 /** 44 * Default custom headers packaged with the theme. 43 /* Default custom headers packaged with the theme. 45 44 * %s is a placeholder for the theme template directory URI. 46 45 */ 47 46 register_default_headers( array(