Make WordPress Core

Changeset 24194


Ignore:
Timestamp:
05/07/2013 09:56:29 PM (13 years ago)
Author:
lancewillett
Message:

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

File:
1 edited

Legend:

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

    r24050 r24194  
    641641    $images = array();
    642642
    643     if ( function_exists( 'get_post_gallery_images' ) ) {
    644         $galleries = get_post_galleries();
     643    if ( function_exists( 'get_post_galleries' ) ) {
     644        $galleries = get_post_galleries( get_the_ID(), false );
    645645        if ( isset( $galleries[0]['ids'] ) )
    646646            $images = explode( ',', $galleries[0]['ids'] );
Note: See TracChangeset for help on using the changeset viewer.