Changeset 12067 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/content-single.php
- Timestamp:
- 09/15/2022 09:23:21 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/content-single.php
r11323 r12067 17 17 </header> 18 18 19 <div class="lp-content"> 19 <hr> 20 21 <?php 22 $embed = get_media_embedded_in_content( apply_filters( 'the_content', get_the_content() ) ); 23 24 $content_class = ''; 25 if ( $embed ) { 26 $content_class = ' hide-first-embed'; 27 echo '<div class="slide-embed">' . $embed[0] . '</div>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 28 } 29 ?> 30 <div class="lp-content<?php echo esc_attr( $content_class ); ?>"> 20 31 <div class="lp-content-inner github-markdown"> 21 32 <?php
Note: See TracChangeset
for help on using the changeset viewer.