Making WordPress.org


Ignore:
Timestamp:
02/28/2019 06:36:31 AM (7 years ago)
Author:
dd32
Message:

WordPress.TV: Use the newer pagination functions.

Fixes #4210.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/pagination.php

    r6374 r8370  
    66 */
    77
    8 if ( $wp_query->max_num_pages > 1 ) :
    9 ?>
    10 <div class="pagination">
    11     <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older videos', 'wptv' ) ); ?></div>
    12     <div class="nav-next"><?php previous_posts_link( __( 'Newer videos <span class="meta-nav">&rarr;</span>', 'wptv' ) ); ?></div>
    13 </div>
    14 <?php
    15 endif;
     8the_posts_pagination( array(
     9    'prev_text' => __( '<span class="meta-nav">&larr;</span> Newer videos', 'wptv' ),
     10    'next_text' => __( 'Older videos <span class="meta-nav">&rarr;</span>', 'wptv' ),
     11) );
Note: See TracChangeset for help on using the changeset viewer.