Ticket #24270: 24270.diff
| File 24270.diff, 531 bytes (added by , 13 years ago) |
|---|
-
wp-includes/media.php
2342 2342 function get_post_galleries( $post_id = 0, $html = true ) { 2343 2343 $post = empty( $post_id ) ? clone get_post() : get_post( $post_id ); 2344 2344 if ( empty( $post ) || ! has_shortcode( $post->post_content, 'gallery' ) ) 2345 return array();2345 return $html ? '' : array(); 2346 2346 2347 2347 return get_content_galleries( $post->post_content, $html ); 2348 2348 }