Purpose:
Default gallery thumbs show only description, not caption. This revise is to hide description and show caption.
Source:
- /wp-includes/media.php
- /wp-includes/post-template.php
function gallery_shortcode( $attr ){} in media.php:
1 2 3 4 5 6 7 8 9 |
if ( $captiontag && trim($attachment->post_excerpt) ) { $output .= " <{$captiontag} class='wp-caption-text gallery-caption'>" . //wptexturize($attachment->post_excerpt) . //Show description wptexturize($attachment->post_title) . //Show caption "</{$captiontag}>"; //echo var_dump($output); //exit(); } |