Release 5.2.11 5.2.11
authorAlexander Ebert <ebert@woltlab.com>
Fri, 29 Jan 2021 14:01:03 +0000 (15:01 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 29 Jan 2021 14:01:03 +0000 (15:01 +0100)
com.woltlab.wcf/package.xml
wcfsetup/install/files/acp/update_com.woltlab.wcf_5.2.10_orphanedComments.php [deleted file]
wcfsetup/install/files/lib/system/WCF.class.php

index 62f1251b639c19090b7e19f89de3e4c1ad48a4c9..b57e8c384e0faa757f5140c2c589520e51907981 100644 (file)
@@ -5,8 +5,8 @@
                <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>
diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.2.10_orphanedComments.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.2.10_orphanedComments.php
deleted file mode 100644 (file)
index 7ab0dcb..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?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);
-}
index 3b5c942ced60f117f4374f6a66ce6afaf43ef18c..0bf2b58dd7f010c9e3db3f8f541bfe45a84e2469 100644 (file)
@@ -51,7 +51,7 @@ if (!@ini_get('date.timezone')) {
 }
 
 // define current woltlab suite version
-define('WCF_VERSION', '5.2.10');
+define('WCF_VERSION', '5.2.11');
 
 // define current API version
 // @deprecated 5.2