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
This commit is contained in:
Scott Taylor 2014-06-02 00:26:24 +00:00
parent d4b336ded2
commit 58690d7b97
1 changed files with 1 additions and 2 deletions

View File

@ -145,8 +145,7 @@
this.next(); this.next();
} else { } else {
this.index = 0; this.index = 0;
this.current = this.tracks.at( this.index ); this.setCurrent();
this.loadCurrent();
} }
}, },