Ticket #21756: 21756.diff
File 21756.diff, 14.7 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentyten/loop.php
59 59 60 60 <?php if ( ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) || in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?> 61 61 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 62 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>62 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 63 63 64 64 <div class="entry-meta"> 65 65 <?php twentyten_posted_on(); ?> … … 80 80 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> 81 81 </div><!-- .gallery-thumb --> 82 82 <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' ), 83 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0') ) . '" rel="bookmark"',83 'href="' . get_permalink() . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"', 84 84 number_format_i18n( $total_images ) 85 85 ); ?></em></p> 86 86 <?php endif; ?> … … 128 128 129 129 <?php else : ?> 130 130 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 131 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>131 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 132 132 133 133 <div class="entry-meta"> 134 134 <?php twentyten_posted_on(); ?> -
wp-content/themes/twentyeleven/content-aside.php
13 13 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 14 14 <header class="entry-header"> 15 15 <hgroup> 16 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>16 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 17 17 <h3 class="entry-format"><?php _e( 'Aside', 'twentyeleven' ); ?></h3> 18 18 </hgroup> 19 19 -
wp-content/themes/twentyeleven/content-link.php
13 13 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 14 14 <header class="entry-header"> 15 15 <hgroup> 16 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>16 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 17 17 <h3 class="entry-format"><?php _e( 'Link', 'twentyeleven' ); ?></h3> 18 18 </hgroup> 19 19 -
wp-content/themes/twentyeleven/content-featured.php
11 11 ?> 12 12 <article id="post-<?php the_ID(); ?>" <?php post_class( $feature_class ); ?>> 13 13 <header class="entry-header"> 14 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>14 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 15 15 16 16 <div class="entry-meta"> 17 17 <?php twentyeleven_posted_on(); ?> -
wp-content/themes/twentyeleven/content.php
12 12 <header class="entry-header"> 13 13 <?php if ( is_sticky() ) : ?> 14 14 <hgroup> 15 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>15 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 16 16 <h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3> 17 17 </hgroup> 18 18 <?php else : ?> 19 <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>19 <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> 20 20 <?php endif; ?> 21 21 22 22 <?php if ( 'post' == get_post_type() ) : ?> -
wp-content/themes/twentyeleven/showcase.php
117 117 else 118 118 $thumbnail_size = 'small-feature'; 119 119 ?> 120 <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0') ); ?>" rel="bookmark"><?php the_post_thumbnail( $thumbnail_size ); ?></a>120 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_post_thumbnail( $thumbnail_size ); ?></a> 121 121 <?php 122 122 } 123 123 ?> … … 147 147 else 148 148 $class = ''; 149 149 ?> 150 <li><a href="#featured-post-<?php echo $counter_slider; ?>" title="<?php printf( esc_attr__( 'Featuring: %s', 'twentyeleven' ), the_title_attribute( 'echo=0') ); ?>" <?php echo $class; ?>></a></li>150 <li><a href="#featured-post-<?php echo $counter_slider; ?>" title="<?php echo esc_attr( sprintf( __( 'Featuring: %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" <?php echo $class; ?>></a></li> 151 151 <?php endwhile; ?> 152 152 </ul> 153 153 </nav> … … 196 196 while ( $recent->have_posts() ) : $recent->the_post(); ?> 197 197 198 198 <li class="entry-title"> 199 <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a>199 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a> 200 200 <span class="comments-link"> 201 201 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?> 202 202 </span> -
wp-content/themes/twentyeleven/content-image.php
12 12 <article id="post-<?php the_ID(); ?>" <?php post_class( 'indexed' ); ?>> 13 13 <header class="entry-header"> 14 14 <hgroup> 15 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>15 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 16 16 <h3 class="entry-format"><?php _e( 'Image', 'twentyeleven' ); ?></h3> 17 17 </hgroup> 18 18 -
wp-content/themes/twentyeleven/content-status.php
12 12 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 13 13 <header class="entry-header"> 14 14 <hgroup> 15 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>15 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 16 16 <h3 class="entry-format"><?php _e( 'Status', 'twentyeleven' ); ?></h3> 17 17 </hgroup> 18 18 -
wp-content/themes/twentyeleven/content-quote.php
11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 12 <header class="entry-header"> 13 13 <hgroup> 14 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>14 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 15 15 <h3 class="entry-format"><?php _e( 'Quote', 'twentyeleven' ); ?></h3> 16 16 </hgroup> 17 17 -
wp-content/themes/twentyeleven/content-gallery.php
13 13 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 14 14 <header class="entry-header"> 15 15 <hgroup> 16 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>16 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 17 17 <h3 class="entry-format"><?php _e( 'Gallery', 'twentyeleven' ); ?></h3> 18 18 </hgroup> 19 19 … … 45 45 </figure><!-- .gallery-thumb --> 46 46 47 47 <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, 'twentyeleven' ), 48 'href="' . esc_url( get_permalink() ) . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0') ) . '" rel="bookmark"',48 'href="' . esc_url( get_permalink() ) . '" title="' . echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"', 49 49 number_format_i18n( $total_images ) 50 50 ); ?></em></p> 51 51 <?php endif; ?> -
wp-content/themes/twentyeleven/inc/widgets.php
86 86 <?php if ( 'link' != get_post_format() ) : ?> 87 87 88 88 <li class="widget-entry-title"> 89 <a href="<?php echo esc_url( get_permalink() ); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a>89 <a href="<?php echo esc_url( get_permalink() ); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a> 90 90 <span class="comments-link"> 91 91 <?php comments_popup_link( __( '0 <span class="reply">comments →</span>', 'twentyeleven' ), __( '1 <span class="reply">comment →</span>', 'twentyeleven' ), __( '% <span class="reply">comments →</span>', 'twentyeleven' ) ); ?> 92 92 </span> … … 102 102 if ( empty( $link_url ) ) 103 103 $link_url = get_permalink(); 104 104 ?> 105 <a href="<?php echo esc_url( $link_url ); ?>" title="<?php printf( esc_attr__( 'Link to %s', 'twentyeleven' ), the_title_attribute( 'echo=0') ); ?>" rel="bookmark"><?php the_title(); ?> <span>→</span></a>105 <a href="<?php echo esc_url( $link_url ); ?>" title="<?php echo esc_attr( sprintf( __( 'Link to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?> <span>→</span></a> 106 106 <span class="comments-link"> 107 107 <?php comments_popup_link( __( '0 <span class="reply">comments →</span>', 'twentyeleven' ), __( '1 <span class="reply">comment →</span>', 'twentyeleven' ), __( '% <span class="reply">comments →</span>', 'twentyeleven' ) ); ?> 108 108 </span>