Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 8ec0fb0

Browse files
committed
Remove unnecessery code and fix spaces
1 parent 65112b9 commit 8ec0fb0

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

admin/rt-retranscode-admin.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,11 +504,20 @@ function RetranscodeMediaFinishUp() {
504504

505505
$('#retranscodemedia-stop').hide();
506506

507+
<?php
508+
// Allowed tags for notice.
509+
$allowed_tags = array(
510+
'a' => array(
511+
'href' => array(),
512+
'id' => array(),
513+
),
514+
);
515+
?>
516+
507517
if ( rt_errors > 0 ) {
508-
rt_resulttext = '<?php echo wp_kses( $text_failures, array( 'a' => array( 'href' => array(), 'id' => array() ) ) ); ?>';
518+
rt_resulttext = '<?php echo wp_kses( $text_failures, $allowed_tags ); ?>';
509519
} else {
510-
<?php error_log( $text_nofailures ); ?>
511-
rt_resulttext = '<?php echo wp_kses( $text_nofailures, array( 'a' => array( 'href' => array(), 'id' => array() ) ), array( 'javascript' ) ); ?>';
520+
rt_resulttext = '<?php echo wp_kses( $text_nofailures, $allowed_tags ); ?>';
512521
}
513522
$("#message").html("<p><strong>" + rt_resulttext + "</strong></p>");
514523
$("#message").show();

0 commit comments

Comments
 (0)