Wordpress 3.5
[autoinstalls/wordpress.git] / wp-content / themes / twentyeleven / inc / widgets.php
index aac42f06b061746adf493f93c1289f4cdbebb919..b39fc729b324d2c8618da522cb0168af71c0e5a1 100644 (file)
@@ -86,7 +86,7 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget {
                                <?php if ( 'link' != get_post_format() ) : ?>
 
                                <li class="widget-entry-title">
-                                       <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>
+                                       <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>
                                        <span class="comments-link">
                                                <?php comments_popup_link( __( '0 <span class="reply">comments &rarr;</span>', 'twentyeleven' ), __( '1 <span class="reply">comment &rarr;</span>', 'twentyeleven' ), __( '% <span class="reply">comments &rarr;</span>', 'twentyeleven' ) ); ?>
                                        </span>
@@ -102,7 +102,7 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget {
                                                if ( empty( $link_url ) )
                                                        $link_url = get_permalink();
                                        ?>
-                                       <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(); ?>&nbsp;<span>&rarr;</span></a>
+                                       <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(); ?>&nbsp;<span>&rarr;</span></a>
                                        <span class="comments-link">
                                                <?php comments_popup_link( __( '0 <span class="reply">comments &rarr;</span>', 'twentyeleven' ), __( '1 <span class="reply">comment &rarr;</span>', 'twentyeleven' ), __( '% <span class="reply">comments &rarr;</span>', 'twentyeleven' ) ); ?>
                                        </span>