better check for img tags to skip inlining image attachments
This commit is contained in:
@@ -4708,7 +4708,7 @@
|
||||
|
||||
print "<div class=\"postEnclosures\">";
|
||||
|
||||
if (!preg_match("/img/i", $article_content)) {
|
||||
if (!preg_match("/<img/i", $article_content)) {
|
||||
foreach ($entries as $entry) {
|
||||
if (preg_match("/image/", $entry["type"])) {
|
||||
print "<p><img
|
||||
|
||||
Reference in New Issue
Block a user