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