Make WordPress Core


Ignore:
Timestamp:
05/07/2013 09:57:49 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Ten: call get_post_galleries() correctly now that it has new arguments, and use a more accurate function_exists call. Props kovshenin, closes #23617.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/functions.php

    r24145 r24195  
    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'] );
Note: See TracChangeset for help on using the changeset viewer.