From 4bad7825df863a52aac488a3ecf7b3e33f702d0c Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 11 Mar 2023 09:50:31 -0800 Subject: [PATCH] Related to Issue #3927 {NEWS_IMAGE: alt=description} now includes the alt value when included in a news body. --- e107_core/shortcodes/batch/news_shortcodes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e107_core/shortcodes/batch/news_shortcodes.php b/e107_core/shortcodes/batch/news_shortcodes.php index 86a1bf131..7797dbe52 100644 --- a/e107_core/shortcodes/batch/news_shortcodes.php +++ b/e107_core/shortcodes/batch/news_shortcodes.php @@ -493,10 +493,11 @@ class news_shortcodes extends e_shortcode } $style = !empty($this->param['thumbnail']) ? $this->param['thumbnail'] : ''; + $alt = !empty($parm['alt']) ? $parm['alt'] : basename($srcPath); $imgParms = array( 'class' => $class, - 'alt' => basename($srcPath), + 'alt' => $alt, 'style' => $style, 'placeholder' => varset($parm['placeholder']), 'legacy' => '{e_IMAGE}newspost_images'