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: http://core.svn.wordpress.org/trunk@24195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6635fc2a70
commit
0767933d3a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue