Revert "support comments for simplepie"
This reverts commit d020a86c36
.
This commit is contained in:
parent
74cc28f266
commit
35cb2b8f67
|
@ -634,12 +634,7 @@
|
||||||
$entry_cached_content = "";
|
$entry_cached_content = "";
|
||||||
|
|
||||||
if ($use_simplepie) {
|
if ($use_simplepie) {
|
||||||
$entry_comments = $item->get_item_tags('http://purl.org/rss/1.0/modules/slash/', 'comments');
|
$entry_comments = strip_tags($item->data["comments"]);
|
||||||
|
|
||||||
if (is_array($entry_comments) && is_array($entry_comments[0])) {
|
|
||||||
$entry_comments = (int) $entry_comments[0]["data"];
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($item->get_author()) {
|
if ($item->get_author()) {
|
||||||
$entry_author_item = $item->get_author();
|
$entry_author_item = $item->get_author();
|
||||||
$entry_author = $entry_author_item->get_name();
|
$entry_author = $entry_author_item->get_name();
|
||||||
|
@ -648,7 +643,7 @@
|
||||||
$entry_author = db_escape_string($entry_author);
|
$entry_author = db_escape_string($entry_author);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$entry_comments = (int) $item["comments"];
|
$entry_comments = strip_tags($item["comments"]);
|
||||||
|
|
||||||
$entry_author = db_escape_string(strip_tags($item['dc']['creator']));
|
$entry_author = db_escape_string(strip_tags($item['dc']['creator']));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue