From 58690d7b970bb7c39a18ee9a8e8e8f7fd5b22d5b Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 2 Jun 2014 00:26:24 +0000 Subject: [PATCH] In `WPPlaylistView::ended()`, at the end of a playlist, set the index to `0` and call `->setCurrent()` instead of `->loadCurrent()` so that the first track is properly highlighted. Fixes #28428. git-svn-id: https://develop.svn.wordpress.org/trunk@28649 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/mediaelement/wp-playlist.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-includes/js/mediaelement/wp-playlist.js b/src/wp-includes/js/mediaelement/wp-playlist.js index f90200e3a5..f42457398d 100644 --- a/src/wp-includes/js/mediaelement/wp-playlist.js +++ b/src/wp-includes/js/mediaelement/wp-playlist.js @@ -145,8 +145,7 @@ this.next(); } else { this.index = 0; - this.current = this.tracks.at( this.index ); - this.loadCurrent(); + this.setCurrent(); } },