Make WordPress Core

Changeset 35828


Ignore:
Timestamp:
12/08/2015 03:43:47 AM (11 years ago)
Author:
wonderboymusic
Message:

About Page: use the source of the Make/Core Embed response instead of discovering it (or reading from the cache) every time.

Merge of [35826] to the 4.4 branch.
See #34663.

Location:
branches/4.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4

  • branches/4.4/src/wp-admin/about.php

    r35827 r35828  
    8484                        <div class="col">
    8585                                <div class="embed-container">
    86                                         <?php
    87                                         $embed1 = get_site_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                                                 if ( ! $embed1 ) {
    91                                                         $embed1 = '{{unknown}}';
    92                                                 }
    93                                                 set_site_transient( 'about-page-embed-1', $embed1 );
    94                                         }
    95                                         echo '{{unknown}}' !== $embed1 ? $embed1 : '';
    96                                         ?>
     86                                        <blockquote data-secret="OcUe7B6Edh" class="wp-embedded-content"><a href="https://make.wordpress.org/core/2015/10/28/new-embeds-feature-in-wordpress-4-4/">New Embeds Feature in WordPress 4.4</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="display:none;" src="https://make.wordpress.org/core/2015/10/28/new-embeds-feature-in-wordpress-4-4/embed/#?secret=OcUe7B6Edh" data-secret="OcUe7B6Edh" width="600" height="338" title="Embedded WordPress Post" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
    9787                                </div>
    9888                                <h3><?php _e( 'Embed your WordPress content' ); ?></h3>
Note: See TracChangeset for help on using the changeset viewer.