[wp-trac] [WordPress Trac] #37597: served oEmbed from cache even when expired

WordPress Trac noreply at wordpress.org
Mon Aug 8 11:37:18 UTC 2016


#37597: served oEmbed from cache even when expired
--------------------------+-----------------------------
 Reporter:  zabatonni     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Embeds        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 There is wrong condition in wp-includes/class-wp-embed.php
 Embeds are pulled from cache even if $cached_recently is false = expired.

 This condition:

 {{{#!php
 <?php
 if ( $this->usecache || $cached_recently ) {
 }}}

 should be changed to:

 {{{#!php
 <?php
 if ( $this->usecache && $cached_recently ) {
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37597>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list