diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js
index aff81b7..dd3b1de 100644
a
|
b
|
|
2025 | 2025 | previous = lastState && lastState.id, |
2026 | 2026 | frame = this; |
2027 | 2027 | |
| 2028 | // If no previous state, we can assume the user is editing an existing |
| 2029 | // playlist, don't add a cancel link. |
| 2030 | if ( ! previous ) |
| 2031 | return; |
2028 | 2032 | view.set({ |
2029 | 2033 | cancel: { |
2030 | 2034 | text: l10n.cancelGalleryTitle, |
… |
… |
|
2049 | 2053 | previous = lastState && lastState.id, |
2050 | 2054 | frame = this; |
2051 | 2055 | |
| 2056 | // If no previous state, we can assume the user is editing an existing |
| 2057 | // playlist, don't add a cancel link. |
| 2058 | if ( ! previous ) |
| 2059 | return; |
2052 | 2060 | view.set({ |
2053 | 2061 | cancel: { |
2054 | 2062 | text: l10n.cancelPlaylistTitle, |
… |
… |
|
2073 | 2081 | previous = lastState && lastState.id, |
2074 | 2082 | frame = this; |
2075 | 2083 | |
| 2084 | // If no previous state, we can assume the user is editing an existing |
| 2085 | // playlist, don't add a cancel link. |
| 2086 | if ( ! previous ) |
| 2087 | return; |
2076 | 2088 | view.set({ |
2077 | 2089 | cancel: { |
2078 | 2090 | text: l10n.cancelVideoPlaylistTitle, |