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