Ticket #29127: 29127.twentyten.2.patch
File 29127.twentyten.2.patch, 12.3 KB (added by , 9 years ago) |
---|
-
wp-content/themes/twentyten/archive.php
54 54 * If you want to overload this in a child theme then include a file 55 55 * called loop-archive.php and that will be used instead. 56 56 */ 57 57 get_template_part( 'loop', 'archive' ); 58 58 ?> 59 59 60 60 </div><!-- #content --> -
wp-content/themes/twentyten/author.php
25 25 the_post(); 26 26 ?> 27 27 28 <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyten' ), "<span class='vcard'><a class='url fn n' href='" . get_author_posts_url( get_the_author_meta( 'ID' ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . get_the_author() . "</a></span>"); ?></h1>28 <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyten' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1> 29 29 30 30 <?php 31 31 // If a user has filled out their description, show a bio on their entries. … … 63 63 * If you want to overload this in a child theme then include a file 64 64 * called loop-author.php and that will be used instead. 65 65 */ 66 66 get_template_part( 'loop', 'author' ); 67 67 ?> 68 68 </div><!-- #content --> 69 69 </div><!-- #container --> -
wp-content/themes/twentyten/footer.php
24 24 ?> 25 25 26 26 <div id="site-info"> 27 <a href="<?php echo home_url( '/'); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">27 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> 28 28 <?php bloginfo( 'name' ); ?> 29 29 </a> 30 30 </div><!-- #site-info --> -
wp-content/themes/twentyten/functions.php
567 567 if ( function_exists( 'get_post_galleries' ) ) { 568 568 $galleries = get_post_galleries( get_the_ID(), false ); 569 569 if ( isset( $galleries[0]['ids'] ) ) 570 570 $images = explode( ',', $galleries[0]['ids'] ); 571 571 } else { 572 572 $pattern = get_shortcode_regex(); 573 573 preg_match( "/$pattern/s", get_the_content(), $match ); -
wp-content/themes/twentyten/header.php
30 30 31 31 // Add a page number if necessary: 32 32 if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) 33 echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page) );33 echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ) ); 34 34 35 35 ?></title> 36 36 <link rel="profile" href="http://gmpg.org/xfn/11" /> … … 62 62 <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?> 63 63 <<?php echo $heading_tag; ?> id="site-title"> 64 64 <span> 65 <a href="<?php echo home_url( '/'); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>65 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a> 66 66 </span> 67 67 </<?php echo $heading_tag; ?>> 68 68 <div id="site-description"><?php bloginfo( 'description' ); ?></div> … … 96 96 $header_image_height = HEADER_IMAGE_HEIGHT; 97 97 } 98 98 ?> 99 <img src="<?php header_image(); ?>" width="<?php echo $header_image_width; ?>" height="<?php echo $header_image_height; ?>" alt="" />99 <img src="<?php header_image(); ?>" width="<?php echo esc_attr( $header_image_width ); ?>" height="<?php echo esc_attr( $header_image_height ); ?>" alt="" /> 100 100 <?php endif; ?> 101 101 </div><!-- #branding --> 102 102 -
wp-content/themes/twentyten/index.php
24 24 * If you want to overload this in a child theme then include a file 25 25 * called loop-index.php and that will be used instead. 26 26 */ 27 27 get_template_part( 'loop', 'index' ); 28 28 ?> 29 29 </div><!-- #content --> 30 30 </div><!-- #container --> -
wp-content/themes/twentyten/loop-attachment.php
80 80 $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); 81 81 else 82 82 // or get the URL of the first image attachment 83 $next_attachment_url = get_attachment_link( $attachments[ 0]->ID );83 $next_attachment_url = get_attachment_link( $attachments[0]->ID ); 84 84 } else { 85 85 // or, if there's only 1 image attachment, get the URL of the image 86 86 $next_attachment_url = wp_get_attachment_url(); … … 111 111 <div class="nav-next"><?php next_image_link( false ); ?></div> 112 112 </div><!-- #nav-below --> 113 113 <?php else : ?> 114 <a href="<?php echo esc_url( wp_get_attachment_url() ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>114 <a href="<?php echo esc_url( wp_get_attachment_url() ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php echo esc_html( basename( get_permalink() ) ); ?></a> 115 115 <?php endif; ?> 116 116 </div><!-- .entry-attachment --> 117 <div class="entry-caption"><?php if ( ! empty( $post->post_excerpt ) ) the_excerpt(); ?></div>117 <div class="entry-caption"><?php if ( ! empty( $post->post_excerpt ) ) the_excerpt(); ?></div> 118 118 119 119 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 120 120 <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> -
wp-content/themes/twentyten/loop-single.php
46 46 <h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2> 47 47 <?php the_author_meta( 'description' ); ?> 48 48 <div id="author-link"> 49 <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID') ); ?>" rel="author">49 <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> 50 50 <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentyten' ), get_the_author() ); ?> 51 51 </a> 52 52 </div><!-- #author-link --> -
wp-content/themes/twentyten/loop.php
81 81 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo wp_get_attachment_image( $image, 'thumbnail' ); ?></a> 82 82 </div><!-- .gallery-thumb --> 83 83 <p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyten' ), 84 'href="' . get_permalink() . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"',84 'href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"', 85 85 number_format_i18n( $total_images ) 86 86 ); ?></em></p> 87 87 <?php endif; // end twentyten_get_gallery_images() check ?> … … 91 91 92 92 <div class="entry-utility"> 93 93 <?php if ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) : ?> 94 <a href="<?php echo get_post_format_link( 'gallery'); ?>" title="<?php esc_attr_e( 'View Galleries', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>94 <a href="<?php echo esc_url( get_post_format_link( 'gallery' ) ); ?>" title="<?php esc_attr_e( 'View Galleries', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> 95 95 <span class="meta-sep">|</span> 96 96 <?php elseif ( $gallery = get_term_by( 'slug', _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' ) && in_category( $gallery->term_id ) ) : ?> 97 <a href="<?php echo get_category_link( $gallery); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>97 <a href="<?php echo esc_url( get_category_link( $gallery ) ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> 98 98 <span class="meta-sep">|</span> 99 99 <?php endif; ?> 100 100 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> -
wp-content/themes/twentyten/onecolumn-page.php
23 23 * If you want to overload this in a child theme then include a file 24 24 * called loop-page.php and that will be used instead. 25 25 */ 26 26 get_template_part( 'loop', 'page' ); 27 27 ?> 28 28 29 29 </div><!-- #content --> -
wp-content/themes/twentyten/search.php
20 20 * If you want to overload this in a child theme then include a file 21 21 * called loop-search.php and that will be used instead. 22 22 */ 23 23 get_template_part( 'loop', 'search' ); 24 24 ?> 25 25 <?php else : ?> 26 26 <div id="post-0" class="post no-results not-found"> -
wp-content/themes/twentyten/style.css
7 7 Version: 1.6 8 8 License: GNU General Public License v2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 Tags: black, blue, white, two-columns, fixed-layout, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header 10 Tags: black, blue, white, two-columns, fixed-layout, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header, featured-images, featured-image-header 11 11 Text Domain: twentyten 12 12 */ 13 13 -
wp-content/themes/twentyten/tag.php
22 22 * If you want to overload this in a child theme then include a file 23 23 * called loop-tag.php and that will be used instead. 24 24 */ 25 25 get_template_part( 'loop', 'tag' ); 26 26 ?> 27 27 </div><!-- #content --> 28 28 </div><!-- #container -->