From 7f265acff3cd236d71a6edce554986377dcd032d Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 7 May 2013 21:57:49 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@24195 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentyten/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php index eee1d6258c..adc7e7a97d 100644 --- a/wp-content/themes/twentyten/functions.php +++ b/wp-content/themes/twentyten/functions.php @@ -528,8 +528,8 @@ endif; function twentyten_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 {