WordPress.org

Make WordPress Core

Changeset 23938


Ignore:
Timestamp:
04/09/13 16:28:09 (2 years ago)
Author:
SergeyBiryukov
Message:

Use the function argument instead of the $post global in get_the_post_format_image(). props kovshenin. fixes #24003.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r23937 r23938  
    23772377    } 
    23782378 
    2379     $medias = get_attached_images(); 
     2379    $medias = get_attached_images( $post->ID ); 
    23802380    if ( ! empty( $medias ) ) { 
    23812381        $media = reset( $medias ); 
Note: See TracChangeset for help on using the changeset viewer.