Make WordPress Core

Changeset 27312


Ignore:
Timestamp:
02/27/2014 03:21:37 PM (11 years ago)
Author:
wonderboymusic
Message:

In the tracklist for playlist, fall back to title if there is no caption.

Props bassgang.
See #26631.

File:
1 edited

Legend:

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

    r27311 r27312  
    11391139    </div>
    11401140    <# } else { #>
    1141     <div class="wp-playlist-caption">{{{ data.caption }}}</div>
     1141    <div class="wp-playlist-caption">{{{ data.caption ? data.caption : data.title }}}</div>
    11421142    <# } #>
    11431143</script>
Note: See TracChangeset for help on using the changeset viewer.