From 4fd5ffe9945911d5f5ba521b53fc7e62b537382a Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 2 Jun 2014 00:27:18 +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. Built from https://develop.svn.wordpress.org/trunk@28649 git-svn-id: http://core.svn.wordpress.org/trunk@28467 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/mediaelement/wp-playlist.js | 3 +-- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/js/mediaelement/wp-playlist.js b/wp-includes/js/mediaelement/wp-playlist.js index f90200e3a5..f42457398d 100644 --- a/wp-includes/js/mediaelement/wp-playlist.js +++ b/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(); } }, diff --git a/wp-includes/version.php b/wp-includes/version.php index 93f2258722..a64b38fe54 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.0-alpha-20140601'; +$wp_version = '4.0-alpha-20140602'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.