From 6635fc2a705b4e575d68c9cb9af3de6fcd90c14d Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 7 May 2013 21:56:29 +0000 Subject: [PATCH] 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. git-svn-id: http://core.svn.wordpress.org/trunk@24194 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyeleven/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentyeleven/functions.php b/wp-content/themes/twentyeleven/functions.php index f7ad6157e3..296d887167 100644 --- a/wp-content/themes/twentyeleven/functions.php +++ b/wp-content/themes/twentyeleven/functions.php @@ -640,8 +640,8 @@ add_filter( 'body_class', 'twentyeleven_body_classes' ); function twentyeleven_get_gallery_images() { $images = array(); - if ( function_exists( 'get_post_gallery_images' ) ) { - $galleries = get_post_galleries(); + if ( function_exists( 'get_post_galleries' ) ) { + $galleries = get_post_galleries( get_the_ID(), false ); if ( isset( $galleries[0]['ids'] ) ) $images = explode( ',', $galleries[0]['ids'] ); } else {