From 975ead67e219d8d49eff39e7956840cac65000be Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Sun, 7 Dec 2008 15:01:48 +0000 Subject: [PATCH] fixed empty title/alt if img metadata is empty --- fp-plugins/bbcode/plugin.bbcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fp-plugins/bbcode/plugin.bbcode.php b/fp-plugins/bbcode/plugin.bbcode.php index 05ca20b..7eafacd 100644 --- a/fp-plugins/bbcode/plugin.bbcode.php +++ b/fp-plugins/bbcode/plugin.bbcode.php @@ -175,7 +175,7 @@ function do_bbcode_img ($action, $attributes, $content, $params, $node_object) { if(is_array($img_info)) { $iptc = iptcparse($img_info["APP13"]); - $title = @$iptc["2#005"][0]? wp_specialchars($iptc["2#005"][0]) : null; + $title = @$iptc["2#005"][0]? wp_specialchars($iptc["2#005"][0]) : $title; $alt = isset($iptc["2#120"][0])? wp_specialchars($iptc["2#120"][0],1) : $title; }