Make WordPress Core

Ticket #34663: 34663.12.diff

File 34663.12.diff, 1.7 KB (added by wonderboymusic, 9 years ago)
  • src/wp-admin/about.php

     
    8383                <div class="feature-section two-col">
    8484                        <div class="col">
    8585                                <div class="embed-container">
    86                                         <?php echo wp_oembed_get( 'https://make.wordpress.org/core/2015/10/28/new-embeds-feature-in-wordpress-4-4/' ); ?>
     86                                        <?php
     87                                        $embed1 = get_transient( 'about-page-embed-1' );
     88                                        if ( false === $embed1 ) {
     89                                                $embed1 = wp_oembed_get( 'https://make.wordpress.org/core/2015/10/28/new-embeds-feature-in-wordpress-4-4/' );
     90
     91                                                set_transient( 'about-page-embed-1', $embed1 );
     92                                        }
     93                                        echo $embed1; ?>
    8794                                </div>
    8895                                <h3><?php _e( 'Embed your WordPress content' ); ?></h3>
    8996                                <p><?php _e( 'Now you can embed your posts on other sites, even other WordPress sites. Simply drop a post URL into the editor and see an instant embed preview, complete with the title, excerpt, and featured image if you&#8217;ve set one. We&#8217;ll even include your site icon and links for comments and sharing.' ); ?></p>
     
    9097                        </div>
    9198                        <div class="col">
    9299                                <div class="embed-container">
    93                                         <?php echo wp_oembed_get( '' ); ?>
     100                                        <?php
     101                                        $embed2 = get_transient( 'about-page-embed-2' );
     102                                        if ( false === $embed2 ) {
     103                                                $embed2 = wp_oembed_get( 'https://cloudup.com/cD3duXiAI5k' );
     104
     105                                                set_transient( 'about-page-embed-2', $embed2 );
     106                                        }
     107                                        echo $embed2; ?>
    94108                                </div>
    95109                                <h3><?php _e( 'Even more embed providers' ); ?></h3>
    96110                                <p><?php _e( 'In addition to post embeds, WordPress 4.4 also adds support for five new oEmbed providers: Cloudup, Reddit&nbsp;Comments, ReverbNation, Speaker&nbsp;Deck, and VideoPress.' ); ?></p>