Make WordPress Core


Ignore:
Timestamp:
12/14/2018 07:08:06 PM (6 years ago)
Author:
allancole
Message:

Updating Twenty Nineteen, the new default theme for 2019.

This change adds general code quality and documentation improvements.

Props grapplerulrich, iCaleb.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-content/themes/twentynineteen/inc/template-tags.php

    r43892 r44187  
    158158        <figure class="post-thumbnail">
    159159            <a class="post-thumbnail-inner" href="<?php the_permalink(); ?>" aria-hidden="true" tabindex="-1">
    160                 <?php
    161                 the_post_thumbnail( 'post-thumbnail' );
    162                 ?>
     160                <?php the_post_thumbnail( 'post-thumbnail' ); ?>
    163161            </a>
    164162        </figure>
     
    211209            comment_form(
    212210                array(
    213                     'logged_in_as'       => null,
    214                     'title_reply'        => null,
     211                    'logged_in_as' => null,
     212                    'title_reply'  => null,
    215213                )
    216214            );
     
    224222     */
    225223    function twentynineteen_the_posts_navigation() {
    226         $prev_icon = twentynineteen_get_icon_svg( 'chevron_left', 22 );
    227         $next_icon = twentynineteen_get_icon_svg( 'chevron_right', 22 );
    228224        the_posts_pagination(
    229225            array(
    230226                'mid_size'  => 2,
    231                 'prev_text' => sprintf( '%s <span class="nav-prev-text">%s</span>', $prev_icon, __( 'Newer posts', 'twentynineteen' ) ),
    232                 'next_text' => sprintf( '<span class="nav-next-text">%s</span> %s', __( 'Older posts', 'twentynineteen' ), $next_icon ),
     227                'prev_text' => sprintf(
     228                    '%s <span class="nav-prev-text">%s</span>',
     229                    twentynineteen_get_icon_svg( 'chevron_left', 22 ),
     230                    __( 'Newer posts', 'twentynineteen' )
     231                ),
     232                'next_text' => sprintf(
     233                    '<span class="nav-next-text">%s</span> %s',
     234                    __( 'Older posts', 'twentynineteen' ),
     235                    twentynineteen_get_icon_svg( 'chevron_right', 22 )
     236                ),
    233237            )
    234238        );
Note: See TracChangeset for help on using the changeset viewer.