From 855cab5e1cea398e1949d966f5461f3798d06bb2 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 8 Oct 2009 21:58:06 -0400 Subject: [PATCH] more cleanup work --- classes/WhatDidTheySayAdmin.inc | 1 + classes/partials/_display-queued-transcript.inc | 4 ++-- classes/partials/_manage-queued-transcripts.inc | 8 +++----- classes/partials/_queued-transcript-contents.inc | 3 ++- what-did-they-say.php | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/classes/WhatDidTheySayAdmin.inc b/classes/WhatDidTheySayAdmin.inc index 46fc5ad..f1fd71c 100644 --- a/classes/WhatDidTheySayAdmin.inc +++ b/classes/WhatDidTheySayAdmin.inc @@ -855,6 +855,7 @@ class WhatDidTheySayAdmin { } $transcript_options = new WDTSTranscriptOptions($post->ID); + $queued_transcripts = new WDTSQueuedTranscript($post->ID); $language_options = new WDTSLanguageOptions(); diff --git a/classes/partials/_display-queued-transcript.inc b/classes/partials/_display-queued-transcript.inc index 7cfbfc7..faf275c 100644 --- a/classes/partials/_display-queued-transcript.inc +++ b/classes/partials/_display-queued-transcript.inc @@ -1,4 +1,4 @@ -
+
- + diff --git a/classes/partials/_manage-queued-transcripts.inc b/classes/partials/_manage-queued-transcripts.inc index b709e2d..fcc807e 100644 --- a/classes/partials/_manage-queued-transcripts.inc +++ b/classes/partials/_manage-queued-transcripts.inc @@ -1,16 +1,14 @@ get_transcripts(); + $transcripts_to_show = $queued_transcript_object->get_transcripts(); $title = __('All Submitted Transcripts', 'what-did-they-say'); } else { if (!is_admin()) { $user = wp_get_current_user(); if (!empty($user)) { - $transcripts_to_show = $queued_transcripts->get_transcripts_for_user($user->ID); + $transcripts_to_show = $queued_transcript_object->get_transcripts_for_user($user->ID); $title = __('Your Submitted Transcripts', 'what-did-they-say'); } } @@ -21,7 +19,7 @@

diff --git a/classes/partials/_queued-transcript-contents.inc b/classes/partials/_queued-transcript-contents.inc index b4f3796..621b809 100644 --- a/classes/partials/_queued-transcript-contents.inc +++ b/classes/partials/_queued-transcript-contents.inc @@ -1,10 +1,11 @@ +

%s in %s:', 'what-did-they-say'), - $user->display_name, + $transcript_user->display_name, $language_options->get_language_name($transcript['language']) ) ?>

diff --git a/what-did-they-say.php b/what-did-they-say.php index 3e1dcfe..c37ee5d 100644 --- a/what-did-they-say.php +++ b/what-did-they-say.php @@ -184,7 +184,7 @@ function the_media_transcript_queue_editor() { global $post; if (current_user_can('submit_transcriptions')) { - $queued_transcripts = new WDTSQueuedTranscript($post->ID); + $queued_transcript_object = new WDTSQueuedTranscript($post->ID); $language_options = new WDTSLanguageOptions(); @@ -204,7 +204,7 @@ function the_media_transcript_queue_editor() { ?>
- [ ] + [ ]