Changeset 42692
- Timestamp:
- 02/11/2018 02:52:03 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r42691 r42692 1557 1557 } 1558 1558 1559 $caption_id = ''; 1560 1559 1561 if ( ! empty( $atts['id'] ) ) { 1560 1562 $att_id = esc_attr( sanitize_html_class( $atts['id'] ) ); 1561 1563 $atts['id'] = 'id="' . $att_id . '" '; 1562 } 1563 1564 $caption_id = 'caption-' . str_replace( '_', '-', $att_id ); 1564 $caption_id = 'caption-' . str_replace( '_', '-', $att_id ); 1565 } 1565 1566 1566 1567 $class = trim( 'wp-caption ' . $atts['align'] . ' ' . $atts['class'] );
Note: See TracChangeset
for help on using the changeset viewer.