Make WordPress Core


Ignore:
Timestamp:
09/30/2019 05:40:14 PM (6 years ago)
Author:
desrosj
Message:

Bundled Themes: Update Twenty Twenty.

This brings trunk’s version of Twenty Twenty in-sync with GitHub.

For a complete list of changes since [46271], see https://github.com/WordPress/twentytwenty/compare/932b16248...dd7032f

Props anlino, ianbelanger, nielslange, acosmin, netweb, williampatton, adhitya03, phpdocs, acalfieri, itowhid06, littlebigthing, aristath, karmatosed, poena.
See #48110.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/index.php

    r46271 r46357  
    4242    } elseif ( ! is_home() ) {
    4343        $archive_title    = get_the_archive_title();
    44         $archive_subtitle = get_the_archive_description( '<div>', '</div>' );
     44        $archive_subtitle = get_the_archive_description();
    4545    }
    4646
     
    6464        </header><!-- .archive-header -->
    6565
    66     <?php } ?>
     66        <?php
     67    }
    6768
    68     <div class="posts">
     69    if ( have_posts() ) {
     70
     71        $i = 0;
     72
     73        while ( have_posts() ) {
     74            $i++;
     75            if ( $i > 1 ) {
     76                echo '<hr class="post-separator styled-separator is-style-wide section-inner" aria-hidden="true" />';
     77            }
     78            the_post();
     79
     80            get_template_part( 'template-parts/content', get_post_type() );
     81
     82        }
     83    } elseif ( is_search() ) {
     84        ?>
     85
     86        <div class="no-search-results-form section-inner thin">
     87
     88            <?php
     89            get_search_form(
     90                array(
     91                    'label' => _x( 'search again', 'Label', 'twentytwenty' ),
     92                )
     93            );
     94            ?>
     95
     96        </div><!-- .no-search-results -->
    6997
    7098        <?php
    71         if ( have_posts() ) {
    72 
    73             $i = 0;
    74 
    75             while ( have_posts() ) {
    76                 $i++;
    77                 if ( $i > 1 ) {
    78                     echo '<hr class="post-separator is-style-wide section-inner" aria-hidden="true" />';
    79                 }
    80                 the_post();
    81 
    82                 get_template_part( 'template-parts/content', get_post_type() );
    83 
    84             }
    85         } elseif ( is_search() ) {
    86             ?>
    87 
    88             <div class="no-search-results-form section-inner thin">
    89 
    90                 <?php
    91                 get_search_form(
    92                     array(
    93                         'label' => __( 'search again', 'twentytwenty' ),
    94                     )
    95                 );
    96                 ?>
    97 
    98             </div><!-- .no-search-results -->
    99 
    100             <?php
    101         }
    102         ?>
    103 
    104     </div><!-- .posts -->
     99    }
     100    ?>
    105101
    106102    <?php get_template_part( 'template-parts/pagination' ); ?>
     103    <?php get_template_part( 'template-parts/footer-menus-widgets' ); ?>
    107104
    108105</main><!-- #site-content -->
Note: See TracChangeset for help on using the changeset viewer.