Making WordPress.org


Ignore:
Timestamp:
09/15/2022 09:23:21 PM (2 years ago)
Author:
adamwood
Message:

Learn: Sync with git WordPress/learn@05de7979860925823e6b081b30129e5117a0d6e7

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  
    1717        </header>
    1818
    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 ); ?>">
    2031            <div class="lp-content-inner github-markdown">
    2132                <?php
Note: See TracChangeset for help on using the changeset viewer.