Making WordPress.org


Ignore:
Timestamp:
08/13/2020 05:43:27 AM (6 years ago)
Author:
dd32
Message:

WordPress.org Learn: Sync with GitHub.

​https://github.com/WordPress/learn/compare/147b403c92721341038870274678169d9fc103d2...493304c8075e98b40168455c0fd49b5549238d22

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/component-video-grid-item.php

    r10131 r10161  
    1111
    1212<li class="col-4 video-grid_item">
    13         <?php if( has_post_thumbnail() ) : ?>
    14                 <?php echo the_post_thumbnail( 'medium' ); ?>
    15         <?php else : ?>
    16                 <div class="video-grid_item--no-image"></div>
    17         <? endif; ?>
    18         <a class="video-grid_item_link" href="<?php echo esc_url( get_the_permalink() ); ?>"><?php the_title(); ?></a>
     13        <a class="video-grid_item_link" href="<?php echo esc_url( get_the_permalink() ); ?>">
     14                <?php echo wporg_get_post_thumbnail( $post, 'medium' ); ?>
     15                <?php the_title(); ?>
     16        </a>
    1917</li>
Note: See TracChangeset for help on using the changeset viewer.