WordPress.org

Make WordPress Core

Changeset 27960


Ignore:
Timestamp:
04/05/2014 08:05:04 PM (6 years ago)
Author:
wonderboymusic
Message:

Revert the changes made to data.title in playlist Underscore templates in [27869]. {{ data.title }} causes the title to be double-encoded on the front end.

See #27574.

File:
1 edited

Legend:

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

    r27946 r27960  
    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><# } #>
     
    10331033                {{ data.caption }}
    10341034            <# } else { #>
    1035                 <span class="wp-playlist-item-title">&#8220;{{ data.title }}&#8221;</span>
     1035                <span class="wp-playlist-item-title">&#8220;{{{ data.title }}}&#8221;</span>
    10361036                <# if ( data.artists && data.meta.artist ) { #>
    10371037                <span class="wp-playlist-item-artist"> &mdash; {{ data.meta.artist }}</span>
Note: See TracChangeset for help on using the changeset viewer.