WordPress.org

Make WordPress Core

Changeset 28050


Ignore:
Timestamp:
04/08/2014 05:39:06 PM (8 years ago)
Author:
nacin
Message:

Escape playlist data in templates.

props wonderboymusic.
fixes #27710.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r28030 r28050  
    10211021    <# } #>
    10221022    <div class="wp-playlist-caption">
    1023         <span class="wp-playlist-item-meta wp-playlist-item-title">&#8220;{{{ data.title }}}&#8221;</span>
     1023        <span class="wp-playlist-item-meta wp-playlist-item-title">&#8220;{{ data.title }}&#8221;</span>
    10241024        <# if ( data.meta.album ) { #><span class="wp-playlist-item-meta wp-playlist-item-album">{{ data.meta.album }}</span><# } #>
    10251025        <# if ( data.meta.artist ) { #><span class="wp-playlist-item-meta wp-playlist-item-artist">{{ data.meta.artist }}</span><# } #>
     
    11951195            'src' => $url,
    11961196            'type' => $ftype['type'],
    1197             'title' => get_the_title( $attachment->ID ),
    1198             'caption' => wptexturize( $attachment->post_excerpt ),
    1199             'description' => wptexturize( $attachment->post_content )
     1197            'title' => $attachment->post_title,
     1198            'caption' => $attachment->post_excerpt,
     1199            'description' => $attachment->post_content
    12001200        );
    12011201
Note: See TracChangeset for help on using the changeset viewer.