[wp-trac] [WordPress Trac] #17210: Massive duplication of oEmbed postmeta

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 22 00:26:01 UTC 2011


#17210: Massive duplication of oEmbed postmeta
--------------------------+------------------------------
 Reporter:  archon810     |       Owner:  Viper007Bond
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Embeds        |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by Viper007Bond):

 Replying to [comment:3 Denis-de-Bernardy]:
 > @Viper: even if he is using query_posts() before the posts are displayed
 or something along those lines (which I suspect is likely, since many
 themes offer a widgets area before the loop kicks in), shouldn't WP be
 smart enough to consult $wp_the_query rather than $wp_query when caching
 these things?

 How would it know where in that array it is?

 It globals `$post` and then uses `$post->ID`. The code is here:

 https://core.trac.wordpress.org/browser/trunk/wp-includes/media.php#L1150

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17210#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list