WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-includes/media.php

    r11529 r11890  
    592592        return $content;
    593593
    594     if ( $id ) $id = 'id="' . $id . '" ';
    595 
    596     return '<div ' . $id . 'class="wp-caption ' . $align . '" style="width: ' . (10 + (int) $width) . 'px">'
     594    if ( $id ) $id = 'id="' . esc_attr($id) . '" ';
     595
     596    return '<div ' . $id . 'class="wp-caption ' . esc_attr($align) . '" style="width: ' . (10 + (int) $width) . 'px">'
    597597    . do_shortcode( $content ) . '<p class="wp-caption-text">' . $caption . '</p></div>';
    598598}
Note: See TracChangeset for help on using the changeset viewer.