Changeset 48496 for trunk/src/wp-includes/media.php
- Timestamp:
- 07/16/2020 09:29:05 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r48454 r48496 2251 2251 $output = "\n"; 2252 2252 foreach ( $attachments as $att_id => $attachment ) { 2253 $output .= wp_get_attachment_link( $att_id, $atts['size'], true ) . "\n"; 2253 if ( ! empty( $atts['link'] ) ) { 2254 if ( 'none' === $atts['link'] ) { 2255 $output .= wp_get_attachment_image( $att_id, $atts['size'], false, $attr ); 2256 } else { 2257 $output .= wp_get_attachment_link( $att_id, $atts['size'], false ); 2258 } 2259 } else { 2260 $output .= wp_get_attachment_link( $att_id, $atts['size'], true ); 2261 } 2262 $output .= "\n"; 2254 2263 } 2255 2264 return $output;
Note: See TracChangeset
for help on using the changeset viewer.