WordPress.org

Make WordPress Core

Ticket #23617: 23617.3.diff

File 23617.3.diff, 635 bytes (added by kovshenin, 12 months ago)
  • wp-content/themes/twentyten/functions.php

     
    528528function twentyten_get_gallery_images() { 
    529529        $images = array(); 
    530530 
    531         if ( function_exists( 'get_post_gallery_images' ) ) { 
    532                 $galleries = get_post_galleries(); 
     531        if ( function_exists( 'get_post_galleries' ) ) { 
     532                $galleries = get_post_galleries( get_the_ID(), false ); 
    533533                if ( isset( $galleries[0]['ids'] ) ) 
    534534                        $images = explode( ',', $galleries[0]['ids'] ); 
    535535        } else {