WordPress.org

Make WordPress Core

Ticket #13198: 13198-wrap-arrow-with-span-meta-nav.diff

File 13198-wrap-arrow-with-span-meta-nav.diff, 3.4 KB (added by zeo, 4 years ago)

Add some meta-nav love. Wrap the left/rightward arrow entity with span to match elsewhere.

  • wp-content/themes/twentyten/single.php

     
    4242                                                        <?php the_author_meta( 'description' ); ?> 
    4343                                                        <div id="author-link"> 
    4444                                                                <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"> 
    45                                                                         <?php printf( __( 'View all posts by %s &rarr;', 'twentyten' ), get_the_author() ); ?> 
     45                                                                        <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentyten' ), get_the_author() ); ?> 
    4646                                                                </a> 
    4747                                                        </div><!-- #author-link --> 
    4848                                                </div><!-- #author-description --> 
  • wp-content/themes/twentyten/comments.php

     
    3838 
    3939<?php if ( get_comment_pages_count() > 1 ) : // Are there comments to navigate through? ?> 
    4040                        <div class="navigation"> 
    41                                 <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentyten' ) ); ?></div> 
    42                                 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyten' ) ); ?></div> 
     41                                <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'twentyten' ) ); ?></div> 
     42                                <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div> 
    4343                        </div> <!-- .navigation --> 
    4444<?php endif; // check for comment navigation ?> 
    4545 
     
    5757 
    5858<?php if ( get_comment_pages_count() > 1 ) : // Are there comments to navigate through? ?> 
    5959                        <div class="navigation"> 
    60                                 <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentyten' ) ); ?></div> 
    61                                 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyten' ) ); ?></div> 
     60                                <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'twentyten' ) ); ?></div> 
     61                                <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div> 
    6262                        </div><!-- .navigation --> 
    6363<?php endif; // check for comment navigation ?> 
    6464 
  • wp-content/themes/twentyten/attachment.php

     
    1515 
    1616<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> 
    1717 
    18                                 <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php esc_attr( printf( __( 'Return to %s', 'twentyten' ), get_the_title( $post->post_parent ) ) ); ?>" rel="gallery">&larr; <?php echo get_the_title( $post->post_parent ); ?></a></p> 
     18                                <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php esc_attr( printf( __( 'Return to %s', 'twentyten' ), get_the_title( $post->post_parent ) ) ); ?>" rel="gallery"><span class="meta-nav">&larr;</span> <?php echo get_the_title( $post->post_parent ); ?></a></p> 
    1919 
    2020                                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 
    2121                                        <h2 class="entry-title"><?php the_title(); ?></h2>