diff --git a/test/selenium/TestCreatePost.html b/test/selenium/TestCreatePost.html
index ae48adc..4364691 100644
--- a/test/selenium/TestCreatePost.html
+++ b/test/selenium/TestCreatePost.html
@@ -23,7 +23,7 @@
type |
- //textarea[@name="wdts[transcripts][en]"] |
+ //textarea[@name="wdts[transcripts][en][transcript]"] |
This is a test transcript inserted on creation. |
@@ -48,7 +48,7 @@
assertValue |
- //textarea[@name="wdts[transcripts][en]"] |
+ //textarea[@name="wdts[transcripts][en][transcript]"] |
This is a test transcript inserted on creation. |
diff --git a/test/selenium/TestMetaboxApprovedTranscriptEditing.html b/test/selenium/TestMetaboxApprovedTranscriptEditing.html
index 6a12ded..966dd9f 100644
--- a/test/selenium/TestMetaboxApprovedTranscriptEditing.html
+++ b/test/selenium/TestMetaboxApprovedTranscriptEditing.html
@@ -23,12 +23,12 @@
assertVisible |
- //textarea[@name="wdts[transcripts][en]"] |
+ //textarea[@name="wdts[transcripts][en][transcript]"] |
|
type |
- //textarea[@name="wdts[transcripts][en]"] |
+ //textarea[@name="wdts[transcripts][en][transcript]"] |
This is a test transcript. |
@@ -38,17 +38,17 @@
assertVisible |
- //textarea[@name="wdts[transcripts][de]"] |
+ //textarea[@name="wdts[transcripts][de][transcript]"] |
|
assertNotVisible |
- //textarea[@name="wdts[transcripts][en]"] |
+ //textarea[@name="wdts[transcripts][en][transcript]"] |
|
type |
- //textarea[@name="wdts[transcripts][de]"] |
+ //textarea[@name="wdts[transcripts][de][transcript]"] |
Dies ist ein Test transcript. |
@@ -63,12 +63,12 @@
assertValue |
- //textarea[@name="wdts[transcripts][en]"] |
+ //textarea[@name="wdts[transcripts][en][transcript]"] |
This is a test transcript. |
assertValue |
- //textarea[@name="wdts[transcripts][de]"] |
+ //textarea[@name="wdts[transcripts][de][transcript]"] |
Dies ist ein Test transcript. |
diff --git a/what-did-they-say.php b/what-did-they-say.php
index afeca85..a639b17 100644
--- a/what-did-they-say.php
+++ b/what-did-they-say.php
@@ -138,7 +138,7 @@ function transcripts_display($language_format = null, $show_transcripts_string =
foreach ($post_transcripts as $transcript) {
$transcript_text = trim($transcript['transcript']);
if (!empty($transcript_text)) {
- $transcripts[$transcript_language] = $transcript;
+ $transcripts[$transcript['language']] = $transcript;
}
}