This is a comment on center an external image, posted by WikiAdmin at 17.12.2020 22:47

View source for Re: FIXED center external image without size

((commit:342be41472d5e5fddb483f178dfa49b7fa6539bb Patch))
%%(hl diff)
diff --git a/wacko/class/wacko.php b/wacko/class/wacko.php
index 6a1363d..0f17aa3 100644
--- a/wacko/class/wacko.php
+++ b/wacko/class/wacko.php
@@ -3513,7 +3513,7 @@
 			// remove typografica glue
 			$text	= preg_replace('/(<|\&lt\;)\/?span( class\=\"nobr\")?(>|\&gt\;)/u', '', $text);
 
-			if ($text == $tag || (!$text && $scale))
+			if ($text == $tag || (!$text && ($scale || $media_class)))
 			{
 				return $this->image_link(str_replace('&', '&', str_replace('&', '&', $tag)), $media_class, null, $text, $text, $scale);
 			}

%%