Better alt handling

merge-requests/5/head
Terence Eden 2024-06-26 13:31:17 +01:00
rodzic f2a295e27e
commit 47ea60a4c8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -731,7 +731,7 @@ HTML;
if ( "image" == $mediaType ) {
// Get the alt text
isset( $attachment["name"] ) ? $alt = $attachment["name"] : $alt = "";
isset( $attachment["name"] ) ? $alt = htmlspecialchars( $attachment["name"] ) : $alt = "";
$content .= "<img src='{$mediaURl}' alt='{$alt}'>";
} else if ( "video" == $mediaType ) {
$content .= "<video controls><source src='{$mediaURl}' type='{$mime}'></video>";