diff --git a/docs/NEWS b/docs/NEWS
index ca4d80da..399f79b2 100644
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,8 @@
Version 1.6 ()
------------------------------------------------------------------------
+ * Allow to moderate multiple selected comments (garvinhicking)
+
* Allow to pass 'template' variable to serendipity_showPlugin
* Make CSS permalink pattern compatible to 1&1 servers,
@@ -83,6 +85,14 @@ Version 1.6 ()
* Added event hook backend_sendcomment for sending comments and
being able to chang via plugin API (onli)
+Version 1.5.5 (December 21st, 2010)
+------------------------------------------------------------------------
+
+ * Due to security issues in the bundled Xinha WYSIWYG,
+ disabled the PHP-based plugins (which are not utilized by
+ serendipity unless manually enabled), until a proper security
+ fix is available
+
Version 1.5.4 (August 26th, 2010)
------------------------------------------------------------------------
diff --git a/include/admin/comments.inc.php b/include/admin/comments.inc.php
index 451655d1..8cf5e1b6 100644
--- a/include/admin/comments.inc.php
+++ b/include/admin/comments.inc.php
@@ -14,10 +14,21 @@ $commentsPerPage = (int)(!empty($serendipity['GET']['filter']['perpage']) ? $ser
$summaryLength = 200;
if ($serendipity['POST']['formAction'] == 'multiDelete' && sizeof($serendipity['POST']['delete']) != 0 && serendipity_checkFormToken()) {
- foreach ( $serendipity['POST']['delete'] as $k => $v ) {
- serendipity_deleteComment($k, $v);
- echo DONE . ': '. sprintf(COMMENT_DELETED, (int)$k) . '
';
- }
+ if ($serendipity['POST']['togglemoderate'] != '') {
+ foreach ( $serendipity['POST']['delete'] as $k => $v ) {
+ $ac = serendipity_approveComment($k, $v, false, 'flip');
+ if ($ac > 0) {
+ echo DONE . ': '. sprintf(COMMENT_APPROVED, (int)$k) . '
';
+ } else {
+ echo DONE . ': '. sprintf(COMMENT_MODERATED, (int)$k) . '
';
+ }
+ }
+ } else {
+ foreach ( $serendipity['POST']['delete'] as $k => $v ) {
+# serendipity_deleteComment($k, $v);
+ echo DONE . ': '. sprintf(COMMENT_DELETED, (int)$k) . '
';
+ }
+ }
}
@@ -544,7 +555,10 @@ foreach ($sql as $rs) {