Changeset 3443037
- Timestamp:
- 01/20/2026 08:14:14 AM (2 months ago)
- Location:
- disable-comments
- Files:
-
- 6 edited
- 1 copied
-
tags/2.6.2 (copied) (copied from disable-comments/trunk)
-
tags/2.6.2/disable-comments.php (modified) (3 diffs)
-
tags/2.6.2/languages/disable-comments.pot (modified) (5 diffs)
-
tags/2.6.2/readme.txt (modified) (2 diffs)
-
trunk/disable-comments.php (modified) (3 diffs)
-
trunk/languages/disable-comments.pot (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
disable-comments/tags/2.6.2/disable-comments.php
r3407795 r3443037 5 5 * Plugin URI: https://wordpress.org/plugins/disable-comments/ 6 6 * Description: Allows administrators to globally disable comments on their site. Comments can be disabled according to post type. You could bulk delete comments using Tools. 7 * Version: 2.6. 17 * Version: 2.6.2 8 8 * Author: WPDeveloper 9 9 * Author URI: https://wpdeveloper.com … … 39 39 40 40 function __construct() { 41 define('DC_VERSION', '2.6. 1');41 define('DC_VERSION', '2.6.2'); 42 42 define('DC_PLUGIN_SLUG', 'disable_comments_settings'); 43 43 define('DC_PLUGIN_ROOT_PATH', dirname(__FILE__)); … … 641 641 if ($comment_id) { 642 642 $comment = get_comment($comment_id); 643 if ($comment && isset($comment->comment_type)) { 644 $comment_type = $comment->comment_type; 645 } 646 } 647 } 648 649 // For DELETE requests, extract comment ID from the route path 650 // The comment ID is only in the URL (e.g., /wp/v2/comments/123), not in request params 651 if (!$comment_type && $request->is_method('DELETE')) { 652 $route_parts = explode('/', $request->get_route()); 653 $comment_id = end($route_parts); 654 655 // Ensure we have a numeric comment ID 656 if (is_numeric($comment_id)) { 657 $comment = get_comment((int) $comment_id); 643 658 if ($comment && isset($comment->comment_type)) { 644 659 $comment_type = $comment->comment_type; -
disable-comments/tags/2.6.2/languages/disable-comments.pot
r3407795 r3443037 1 # Copyright (C) 202 5WPDeveloper1 # Copyright (C) 2026 WPDeveloper 2 2 # This file is distributed under the GPL-3.0+. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Disable Comments 2.6. 1\n"5 "Project-Id-Version: Disable Comments 2.6.2\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/disable-comments\n" 7 "POT-Creation-Date: 202 5-12-02 10:12:36+00:00\n"7 "POT-Creation-Date: 2026-01-20 08:13:50+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" 10 10 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 202 5-MO-DA HO:MI+ZONE\n"11 "PO-Revision-Date: 2026-MO-DA HO:MI+ZONE\n" 12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 13 13 "Language-Team: LANGUAGE <LL@li.org>\n" … … 67 67 msgstr "" 68 68 69 #: disable-comments.php:6 63 disable-comments.php:861 disable-comments.php:86969 #: disable-comments.php:678 disable-comments.php:876 disable-comments.php:884 70 70 msgid "Comments are closed." 71 71 msgstr "" 72 72 73 #: disable-comments.php:7 1773 #: disable-comments.php:732 74 74 msgid "Comments are disabled." 75 75 msgstr "" 76 76 77 #: disable-comments.php:8 1777 #: disable-comments.php:832 78 78 #. translators: %s: disabled post types. 79 79 msgid "" … … 83 83 msgstr "" 84 84 85 #: disable-comments.php:8 1785 #: disable-comments.php:832 86 86 msgid ", " 87 87 msgstr "" 88 88 89 #: disable-comments.php:8 5089 #: disable-comments.php:865 90 90 #. translators: %s: URL to Disabled Comment settings page. 91 91 msgid "" … … 95 95 msgstr "" 96 96 97 #: disable-comments.php: 988views/partials/_disable.php:397 #: disable-comments.php:1003 views/partials/_disable.php:3 98 98 msgid "Settings" 99 99 msgstr "" 100 100 101 #: disable-comments.php: 989101 #: disable-comments.php:1004 102 102 msgid "Tools" 103 103 msgstr "" 104 104 105 #: disable-comments.php:10 06views/partials/_delete.php:9105 #: disable-comments.php:1021 views/partials/_delete.php:9 106 106 #: views/partials/_delete.php:218 107 107 msgid "Delete Comments" 108 108 msgstr "" 109 109 110 #: disable-comments.php:10 72110 #: disable-comments.php:1087 111 111 msgid "Default (no type)" 112 112 msgstr "" 113 113 114 #: disable-comments.php:1 099 disable-comments.php:1730114 #: disable-comments.php:1114 disable-comments.php:1745 115 115 msgid "Logged out users" 116 116 msgstr "" 117 117 118 #: disable-comments.php:1 295118 #: disable-comments.php:1310 119 119 msgid "Saved" 120 120 msgstr "" 121 121 122 #: disable-comments.php:1 392 disable-comments.php:1447123 #: disable-comments.php:14 74122 #: disable-comments.php:1407 disable-comments.php:1462 123 #: disable-comments.php:1489 124 124 msgid "All comments have been deleted" 125 125 msgstr "" 126 126 127 #: disable-comments.php:15 11127 #: disable-comments.php:1526 128 128 msgid "All spam comments have been deleted." 129 129 msgstr "" 130 130 131 #: disable-comments.php:1 797131 #: disable-comments.php:1812 132 132 msgid "Comments are disabled site-wide for all content types" 133 133 msgstr "" 134 134 135 #: disable-comments.php:1 798135 #: disable-comments.php:1813 136 136 msgid "Comments are disabled only for blog posts" 137 137 msgstr "" 138 138 139 #: disable-comments.php:1 799139 #: disable-comments.php:1814 140 140 msgid "Comments are disabled only for pages" 141 141 msgstr "" 142 142 143 #: disable-comments.php:18 00143 #: disable-comments.php:1815 144 144 msgid "Comments are disabled for both posts and pages" 145 145 msgstr "" 146 146 147 #: disable-comments.php:18 01147 #: disable-comments.php:1816 148 148 msgid "Comments are disabled for multiple specific content types" 149 149 msgstr "" 150 150 151 #: disable-comments.php:18 02151 #: disable-comments.php:1817 152 152 msgid "Comments are enabled everywhere" 153 153 msgstr "" 154 154 155 #: disable-comments.php:18 06155 #: disable-comments.php:1821 156 156 #. translators: %s: disabled post types. 157 157 msgid "Comments are disabled for: %s" 158 158 msgstr "" 159 159 160 #: disable-comments.php:18 13 disable-comments.php:1848161 #: disable-comments.php:18 52 disable-comments.php:1868160 #: disable-comments.php:1828 disable-comments.php:1863 161 #: disable-comments.php:1867 disable-comments.php:1883 162 162 msgid "Enabled" 163 163 msgstr "" 164 164 165 #: disable-comments.php:18 14 disable-comments.php:1848166 #: disable-comments.php:18 52 disable-comments.php:1868165 #: disable-comments.php:1829 disable-comments.php:1863 166 #: disable-comments.php:1867 disable-comments.php:1883 167 167 msgid "Disabled" 168 168 msgstr "" 169 169 170 #: disable-comments.php:18 15170 #: disable-comments.php:1830 171 171 msgid "Not applicable" 172 172 msgstr "" 173 173 174 #: disable-comments.php:18 21174 #: disable-comments.php:1836 175 175 msgid "Comment Status" 176 176 msgstr "" 177 177 178 #: disable-comments.php:18 25178 #: disable-comments.php:1840 179 179 msgid "Plugin Configured" 180 180 msgstr "" 181 181 182 #: disable-comments.php:18 26 disable-comments.php:1834183 #: disable-comments.php:18 56 disable-comments.php:1860182 #: disable-comments.php:1841 disable-comments.php:1849 183 #: disable-comments.php:1871 disable-comments.php:1875 184 184 msgid "Yes" 185 185 msgstr "" 186 186 187 #: disable-comments.php:18 26 disable-comments.php:1834188 #: disable-comments.php:18 56 disable-comments.php:1860187 #: disable-comments.php:1841 disable-comments.php:1849 188 #: disable-comments.php:1871 disable-comments.php:1875 189 189 msgid "No" 190 190 msgstr "" 191 191 192 #: disable-comments.php:18 29192 #: disable-comments.php:1844 193 193 msgid "Total Comments" 194 194 msgstr "" 195 195 196 #: disable-comments.php:18 33196 #: disable-comments.php:1848 197 197 msgid "Global Disable Active" 198 198 msgstr "" 199 199 200 #: disable-comments.php:18 37200 #: disable-comments.php:1852 201 201 msgid "Disabled Post Types Count" 202 202 msgstr "" 203 203 204 #: disable-comments.php:18 41204 #: disable-comments.php:1856 205 205 msgid "Disabled Post Types" 206 206 msgstr "" 207 207 208 #: disable-comments.php:18 44 disable-comments.php:1874208 #: disable-comments.php:1859 disable-comments.php:1889 209 209 msgid "None" 210 210 msgstr "" 211 211 212 #: disable-comments.php:18 47212 #: disable-comments.php:1862 213 213 msgid "XML-RPC Comments" 214 214 msgstr "" 215 215 216 #: disable-comments.php:18 51216 #: disable-comments.php:1866 217 217 msgid "REST API Comments" 218 218 msgstr "" 219 219 220 #: disable-comments.php:18 55views/partials/_disable.php:190220 #: disable-comments.php:1870 views/partials/_disable.php:190 221 221 msgid "Show Existing Comments" 222 222 msgstr "" 223 223 224 #: disable-comments.php:18 59224 #: disable-comments.php:1874 225 225 msgid "Network Active" 226 226 msgstr "" 227 227 228 #: disable-comments.php:18 63228 #: disable-comments.php:1878 229 229 msgid "Site-wide Settings" 230 230 msgstr "" 231 231 232 #: disable-comments.php:18 67232 #: disable-comments.php:1882 233 233 msgid "Role-based Exclusions" 234 234 msgstr "" 235 235 236 #: disable-comments.php:18 71236 #: disable-comments.php:1886 237 237 msgid "Excluded Roles" 238 238 msgstr "" 239 239 240 #: disable-comments.php:18 81240 #: disable-comments.php:1896 241 241 msgid "Complete overview of comment disable settings and configuration." 242 242 msgstr "" … … 810 810 msgstr "" 811 811 812 #: disable-comments.php: 997812 #: disable-comments.php:1012 813 813 msgctxt "settings menu title" 814 814 msgid "Disable Comments" -
disable-comments/tags/2.6.2/readme.txt
r3407795 r3443037 6 6 Tested up to: 6.9 7 7 Requires PHP: 5.6 8 Stable tag: 2.6. 18 Stable tag: 2.6.2 9 9 License: GPL-3.0-or-later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 193 193 This will be maintained from August 19, 2020 - @asif2bd 194 194 195 = [2.6.2] - 2026-01-20 = 196 * Fixed: An issue where deleting Notes in WordPress 6.9+ throws an error 197 195 198 = [2.6.1] - 2025-12-02 = 196 199 * Compatible with WordPress 6.9 -
disable-comments/trunk/disable-comments.php
r3407795 r3443037 5 5 * Plugin URI: https://wordpress.org/plugins/disable-comments/ 6 6 * Description: Allows administrators to globally disable comments on their site. Comments can be disabled according to post type. You could bulk delete comments using Tools. 7 * Version: 2.6. 17 * Version: 2.6.2 8 8 * Author: WPDeveloper 9 9 * Author URI: https://wpdeveloper.com … … 39 39 40 40 function __construct() { 41 define('DC_VERSION', '2.6. 1');41 define('DC_VERSION', '2.6.2'); 42 42 define('DC_PLUGIN_SLUG', 'disable_comments_settings'); 43 43 define('DC_PLUGIN_ROOT_PATH', dirname(__FILE__)); … … 641 641 if ($comment_id) { 642 642 $comment = get_comment($comment_id); 643 if ($comment && isset($comment->comment_type)) { 644 $comment_type = $comment->comment_type; 645 } 646 } 647 } 648 649 // For DELETE requests, extract comment ID from the route path 650 // The comment ID is only in the URL (e.g., /wp/v2/comments/123), not in request params 651 if (!$comment_type && $request->is_method('DELETE')) { 652 $route_parts = explode('/', $request->get_route()); 653 $comment_id = end($route_parts); 654 655 // Ensure we have a numeric comment ID 656 if (is_numeric($comment_id)) { 657 $comment = get_comment((int) $comment_id); 643 658 if ($comment && isset($comment->comment_type)) { 644 659 $comment_type = $comment->comment_type; -
disable-comments/trunk/languages/disable-comments.pot
r3407795 r3443037 1 # Copyright (C) 202 5WPDeveloper1 # Copyright (C) 2026 WPDeveloper 2 2 # This file is distributed under the GPL-3.0+. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Disable Comments 2.6. 1\n"5 "Project-Id-Version: Disable Comments 2.6.2\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/disable-comments\n" 7 "POT-Creation-Date: 202 5-12-02 10:12:36+00:00\n"7 "POT-Creation-Date: 2026-01-20 08:13:50+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" 10 10 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 202 5-MO-DA HO:MI+ZONE\n"11 "PO-Revision-Date: 2026-MO-DA HO:MI+ZONE\n" 12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 13 13 "Language-Team: LANGUAGE <LL@li.org>\n" … … 67 67 msgstr "" 68 68 69 #: disable-comments.php:6 63 disable-comments.php:861 disable-comments.php:86969 #: disable-comments.php:678 disable-comments.php:876 disable-comments.php:884 70 70 msgid "Comments are closed." 71 71 msgstr "" 72 72 73 #: disable-comments.php:7 1773 #: disable-comments.php:732 74 74 msgid "Comments are disabled." 75 75 msgstr "" 76 76 77 #: disable-comments.php:8 1777 #: disable-comments.php:832 78 78 #. translators: %s: disabled post types. 79 79 msgid "" … … 83 83 msgstr "" 84 84 85 #: disable-comments.php:8 1785 #: disable-comments.php:832 86 86 msgid ", " 87 87 msgstr "" 88 88 89 #: disable-comments.php:8 5089 #: disable-comments.php:865 90 90 #. translators: %s: URL to Disabled Comment settings page. 91 91 msgid "" … … 95 95 msgstr "" 96 96 97 #: disable-comments.php: 988views/partials/_disable.php:397 #: disable-comments.php:1003 views/partials/_disable.php:3 98 98 msgid "Settings" 99 99 msgstr "" 100 100 101 #: disable-comments.php: 989101 #: disable-comments.php:1004 102 102 msgid "Tools" 103 103 msgstr "" 104 104 105 #: disable-comments.php:10 06views/partials/_delete.php:9105 #: disable-comments.php:1021 views/partials/_delete.php:9 106 106 #: views/partials/_delete.php:218 107 107 msgid "Delete Comments" 108 108 msgstr "" 109 109 110 #: disable-comments.php:10 72110 #: disable-comments.php:1087 111 111 msgid "Default (no type)" 112 112 msgstr "" 113 113 114 #: disable-comments.php:1 099 disable-comments.php:1730114 #: disable-comments.php:1114 disable-comments.php:1745 115 115 msgid "Logged out users" 116 116 msgstr "" 117 117 118 #: disable-comments.php:1 295118 #: disable-comments.php:1310 119 119 msgid "Saved" 120 120 msgstr "" 121 121 122 #: disable-comments.php:1 392 disable-comments.php:1447123 #: disable-comments.php:14 74122 #: disable-comments.php:1407 disable-comments.php:1462 123 #: disable-comments.php:1489 124 124 msgid "All comments have been deleted" 125 125 msgstr "" 126 126 127 #: disable-comments.php:15 11127 #: disable-comments.php:1526 128 128 msgid "All spam comments have been deleted." 129 129 msgstr "" 130 130 131 #: disable-comments.php:1 797131 #: disable-comments.php:1812 132 132 msgid "Comments are disabled site-wide for all content types" 133 133 msgstr "" 134 134 135 #: disable-comments.php:1 798135 #: disable-comments.php:1813 136 136 msgid "Comments are disabled only for blog posts" 137 137 msgstr "" 138 138 139 #: disable-comments.php:1 799139 #: disable-comments.php:1814 140 140 msgid "Comments are disabled only for pages" 141 141 msgstr "" 142 142 143 #: disable-comments.php:18 00143 #: disable-comments.php:1815 144 144 msgid "Comments are disabled for both posts and pages" 145 145 msgstr "" 146 146 147 #: disable-comments.php:18 01147 #: disable-comments.php:1816 148 148 msgid "Comments are disabled for multiple specific content types" 149 149 msgstr "" 150 150 151 #: disable-comments.php:18 02151 #: disable-comments.php:1817 152 152 msgid "Comments are enabled everywhere" 153 153 msgstr "" 154 154 155 #: disable-comments.php:18 06155 #: disable-comments.php:1821 156 156 #. translators: %s: disabled post types. 157 157 msgid "Comments are disabled for: %s" 158 158 msgstr "" 159 159 160 #: disable-comments.php:18 13 disable-comments.php:1848161 #: disable-comments.php:18 52 disable-comments.php:1868160 #: disable-comments.php:1828 disable-comments.php:1863 161 #: disable-comments.php:1867 disable-comments.php:1883 162 162 msgid "Enabled" 163 163 msgstr "" 164 164 165 #: disable-comments.php:18 14 disable-comments.php:1848166 #: disable-comments.php:18 52 disable-comments.php:1868165 #: disable-comments.php:1829 disable-comments.php:1863 166 #: disable-comments.php:1867 disable-comments.php:1883 167 167 msgid "Disabled" 168 168 msgstr "" 169 169 170 #: disable-comments.php:18 15170 #: disable-comments.php:1830 171 171 msgid "Not applicable" 172 172 msgstr "" 173 173 174 #: disable-comments.php:18 21174 #: disable-comments.php:1836 175 175 msgid "Comment Status" 176 176 msgstr "" 177 177 178 #: disable-comments.php:18 25178 #: disable-comments.php:1840 179 179 msgid "Plugin Configured" 180 180 msgstr "" 181 181 182 #: disable-comments.php:18 26 disable-comments.php:1834183 #: disable-comments.php:18 56 disable-comments.php:1860182 #: disable-comments.php:1841 disable-comments.php:1849 183 #: disable-comments.php:1871 disable-comments.php:1875 184 184 msgid "Yes" 185 185 msgstr "" 186 186 187 #: disable-comments.php:18 26 disable-comments.php:1834188 #: disable-comments.php:18 56 disable-comments.php:1860187 #: disable-comments.php:1841 disable-comments.php:1849 188 #: disable-comments.php:1871 disable-comments.php:1875 189 189 msgid "No" 190 190 msgstr "" 191 191 192 #: disable-comments.php:18 29192 #: disable-comments.php:1844 193 193 msgid "Total Comments" 194 194 msgstr "" 195 195 196 #: disable-comments.php:18 33196 #: disable-comments.php:1848 197 197 msgid "Global Disable Active" 198 198 msgstr "" 199 199 200 #: disable-comments.php:18 37200 #: disable-comments.php:1852 201 201 msgid "Disabled Post Types Count" 202 202 msgstr "" 203 203 204 #: disable-comments.php:18 41204 #: disable-comments.php:1856 205 205 msgid "Disabled Post Types" 206 206 msgstr "" 207 207 208 #: disable-comments.php:18 44 disable-comments.php:1874208 #: disable-comments.php:1859 disable-comments.php:1889 209 209 msgid "None" 210 210 msgstr "" 211 211 212 #: disable-comments.php:18 47212 #: disable-comments.php:1862 213 213 msgid "XML-RPC Comments" 214 214 msgstr "" 215 215 216 #: disable-comments.php:18 51216 #: disable-comments.php:1866 217 217 msgid "REST API Comments" 218 218 msgstr "" 219 219 220 #: disable-comments.php:18 55views/partials/_disable.php:190220 #: disable-comments.php:1870 views/partials/_disable.php:190 221 221 msgid "Show Existing Comments" 222 222 msgstr "" 223 223 224 #: disable-comments.php:18 59224 #: disable-comments.php:1874 225 225 msgid "Network Active" 226 226 msgstr "" 227 227 228 #: disable-comments.php:18 63228 #: disable-comments.php:1878 229 229 msgid "Site-wide Settings" 230 230 msgstr "" 231 231 232 #: disable-comments.php:18 67232 #: disable-comments.php:1882 233 233 msgid "Role-based Exclusions" 234 234 msgstr "" 235 235 236 #: disable-comments.php:18 71236 #: disable-comments.php:1886 237 237 msgid "Excluded Roles" 238 238 msgstr "" 239 239 240 #: disable-comments.php:18 81240 #: disable-comments.php:1896 241 241 msgid "Complete overview of comment disable settings and configuration." 242 242 msgstr "" … … 810 810 msgstr "" 811 811 812 #: disable-comments.php: 997812 #: disable-comments.php:1012 813 813 msgctxt "settings menu title" 814 814 msgid "Disable Comments" -
disable-comments/trunk/readme.txt
r3407795 r3443037 6 6 Tested up to: 6.9 7 7 Requires PHP: 5.6 8 Stable tag: 2.6. 18 Stable tag: 2.6.2 9 9 License: GPL-3.0-or-later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 193 193 This will be maintained from August 19, 2020 - @asif2bd 194 194 195 = [2.6.2] - 2026-01-20 = 196 * Fixed: An issue where deleting Notes in WordPress 6.9+ throws an error 197 195 198 = [2.6.1] - 2025-12-02 = 196 199 * Compatible with WordPress 6.9
Note: See TracChangeset
for help on using the changeset viewer.