<packagedescription>Free CMS and web-framework, designed for awesome websites and communities.</packagedescription>
<packagedescription language="de">Freies CMS und Web-Framework, das eindrucksvolle Websites und Communities ermöglicht.</packagedescription>
<isapplication>1</isapplication>
- <version>5.2.10</version> <!-- codename: hurricane -->
- <date>2020-11-23</date>
+ <version>5.2.11</version> <!-- codename: hurricane -->
+ <date>2021-01-29</date>
</packageinformation>
<authorinformation>
<instruction type="script">acp/update_com.woltlab.wcf_preventMailAbuse.php</instruction>
</instructions>
- <instructions type="update" fromversion="5.2.9">
+ <instructions type="update" fromversion="5.2.10">
<instruction type="acpTemplate">acptemplates_update.tar</instruction>
<instruction type="file">files_update.tar</instruction>
<instruction type="template">templates_update.tar</instruction>
<instruction type="language" />
- <instruction type="script">acp/update_com.woltlab.wcf_5.2.10_orphanedComments.php</instruction>
+ <instruction type="userNotificationEvent" />
</instructions>
-
- <!-- Delete `update_com.woltlab.wcf_5.2.10_orphanedComments.php` from git for the next update -->
</package>
+++ /dev/null
-<?php
-namespace wcf\acp;
-
-use wcf\data\object\type\ObjectTypeCache;
-use wcf\system\comment\CommentHandler;
-use wcf\system\WCF;
-
-// Earlier versions did remove moderation queues without taking care of
-// comments associated with them.
-$commentObjectTypeID = ObjectTypeCache::getInstance()->getObjectTypeIDByName(
- "com.woltlab.wcf.comment.commentableContent",
- "com.woltlab.wcf.moderation.queue"
-);
-
-$sql = "SELECT DISTINCT objectID
- FROM wcf" . WCF_N . "_comment
- WHERE objectTypeID = ?
- AND objectID NOT IN (
- SELECT queueID
- FROM wcf" . WCF_N . "_moderation_queue
- )";
-$statement = WCF::getDB()->prepareStatement($sql);
-$statement->execute([$commentObjectTypeID]);
-$objectIDs = $statement->fetchAll(\PDO::FETCH_COLUMN);
-
-if (!empty($objectIDs)) {
- CommentHandler::getInstance()->deleteObjects("com.woltlab.wcf.moderation.queue", $objectIDs);
-}
}
// define current woltlab suite version
-define('WCF_VERSION', '5.2.10');
+define('WCF_VERSION', '5.2.11');
// define current API version
// @deprecated 5.2