Disable Comments - Version 2.1.2

Version Description

Download this release

Release Info

Developer wpdevteam
Plugin Icon 128x128 Disable Comments
Version 2.1.2
Comparing to
See all releases

Code changes from version 2.1.1 to 2.1.2

disable-comments.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Disable Comments
5
  * Plugin URI: https://wordpress.org/plugins/disable-comments/
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.1.1
8
  * Author: WPDeveloper
9
  * Author URI: https://wpdeveloper.net
10
  * License: GPL-3.0+
@@ -37,7 +37,7 @@ class Disable_Comments
37
 
38
  function __construct()
39
  {
40
- define('DC_VERSION', '2.1.1');
41
  define('DC_PLUGIN_SLUG', 'disable_comments_settings');
42
  define('DC_PLUGIN_ROOT_PATH', dirname(__FILE__));
43
  define('DC_PLUGIN_VIEWS_PATH', DC_PLUGIN_ROOT_PATH . '/views/');
@@ -196,7 +196,7 @@ class Disable_Comments
196
  */
197
  private function is_post_type_disabled($type)
198
  {
199
- return in_array($type, $this->get_disabled_post_types());
200
  }
201
 
202
  private function init_filters()
@@ -409,7 +409,6 @@ class Disable_Comments
409
  public function filter_gutenberg_blocks($hook)
410
  {
411
  global $post;
412
-
413
  if ($this->options['remove_everywhere'] || (isset($post->post_type) && in_array($post->post_type, $this->get_disabled_post_types(), true))) {
414
  return $this->disable_comments_script();
415
  }
@@ -554,20 +553,20 @@ class Disable_Comments
554
 
555
  public function filter_existing_comments($comments, $post_id)
556
  {
557
- $post = get_post($post_id);
558
- return ($this->options['remove_everywhere'] || $this->is_post_type_disabled($post->post_type) ? array() : $comments);
559
  }
560
 
561
  public function filter_comment_status($open, $post_id)
562
  {
563
- $post = get_post($post_id);
564
- return ($this->options['remove_everywhere'] || $this->is_post_type_disabled($post->post_type) ? false : $open);
565
  }
566
 
567
  public function filter_comments_number($count, $post_id)
568
  {
569
- $post = get_post($post_id);
570
- return ($this->options['remove_everywhere'] || $this->is_post_type_disabled($post->post_type) ? 0 : $count);
571
  }
572
 
573
  public function disable_rc_widget()
4
  * Plugin Name: Disable Comments
5
  * Plugin URI: https://wordpress.org/plugins/disable-comments/
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.1.2
8
  * Author: WPDeveloper
9
  * Author URI: https://wpdeveloper.net
10
  * License: GPL-3.0+
37
 
38
  function __construct()
39
  {
40
+ define('DC_VERSION', '2.1.2');
41
  define('DC_PLUGIN_SLUG', 'disable_comments_settings');
42
  define('DC_PLUGIN_ROOT_PATH', dirname(__FILE__));
43
  define('DC_PLUGIN_VIEWS_PATH', DC_PLUGIN_ROOT_PATH . '/views/');
196
  */
197
  private function is_post_type_disabled($type)
198
  {
199
+ return $type && in_array($type, $this->get_disabled_post_types());
200
  }
201
 
202
  private function init_filters()
409
  public function filter_gutenberg_blocks($hook)
410
  {
411
  global $post;
 
412
  if ($this->options['remove_everywhere'] || (isset($post->post_type) && in_array($post->post_type, $this->get_disabled_post_types(), true))) {
413
  return $this->disable_comments_script();
414
  }
553
 
554
  public function filter_existing_comments($comments, $post_id)
555
  {
556
+ $post_type = get_post_type($post_id);
557
+ return ($this->options['remove_everywhere'] || $this->is_post_type_disabled($post_type) ? array() : $comments);
558
  }
559
 
560
  public function filter_comment_status($open, $post_id)
561
  {
562
+ $post_type = get_post_type($post_id);
563
+ return ($this->options['remove_everywhere'] || $this->is_post_type_disabled($post_type) ? false : $open);
564
  }
565
 
566
  public function filter_comments_number($count, $post_id)
567
  {
568
+ $post_type = get_post_type($post_id);
569
+ return ($this->options['remove_everywhere'] || $this->is_post_type_disabled($post_type) ? 0 : $count);
570
  }
571
 
572
  public function disable_rc_widget()
languages/disable-comments.pot CHANGED
@@ -0,0 +1,431 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2021 WPDeveloper
2
+ # This file is distributed under the GPL-3.0+.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Disable Comments 2.1.2\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/disable-comments\n"
7
+ "POT-Creation-Date: 2021-06-20 11:01:34+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+ "Language: en\n"
15
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
+ "X-Poedit-Country: United States\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+ "X-Poedit-KeywordsList: "
19
+ "__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
20
+ "attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
21
+ "X-Poedit-Basepath: ../\n"
22
+ "X-Poedit-SearchPath-0: .\n"
23
+ "X-Poedit-Bookmarks: \n"
24
+ "X-Textdomain-Support: yes\n"
25
+ "X-Generator: grunt-wp-i18n 1.0.3\n"
26
+
27
+ #: disable-comments.php:121
28
+ msgid "Want to help make Disable Comments even better?"
29
+ msgstr ""
30
+
31
+ #: disable-comments.php:122
32
+ msgid ""
33
+ "We collect non-sensitive diagnostic data and plugin usage information. Your "
34
+ "site URL, WordPress & PHP version, plugins & themes and email address to "
35
+ "send you the discount coupon. This data lets us make sure this plugin "
36
+ "always stays compatible with the most popular plugins and themes. No spam, "
37
+ "I promise."
38
+ msgstr ""
39
+
40
+ #: disable-comments.php:134
41
+ #. translators: %s: WordPress version no.
42
+ msgid "Disable Comments requires WordPress version %s or greater."
43
+ msgstr ""
44
+
45
+ #: disable-comments.php:379 disable-comments.php:522 disable-comments.php:529
46
+ msgid "Comments are closed."
47
+ msgstr ""
48
+
49
+ #: disable-comments.php:481
50
+ #. translators: %s: disabled post types.
51
+ msgid ""
52
+ "Note: The <em>Disable Comments</em> plugin is currently active, and "
53
+ "comments are completely disabled on: %s. Many of the settings below will "
54
+ "not be applicable for those post types."
55
+ msgstr ""
56
+
57
+ #: disable-comments.php:481
58
+ msgid ", "
59
+ msgstr ""
60
+
61
+ #: disable-comments.php:513
62
+ #. translators: %s: URL to Disabled Comment settings page.
63
+ msgid ""
64
+ "The <strong>Disable Comments</strong> plugin is active, but isn't "
65
+ "configured to do anything yet. Visit the <a href=\"%s\">configuration "
66
+ "page</a> to choose which post types to disable comments on."
67
+ msgstr ""
68
+
69
+ #: disable-comments.php:602 views/partials/_disable.php:3
70
+ msgid "Settings"
71
+ msgstr ""
72
+
73
+ #: disable-comments.php:603
74
+ msgid "Tools"
75
+ msgstr ""
76
+
77
+ #: disable-comments.php:622 views/partials/_delete.php:54
78
+ msgid "Delete Comments"
79
+ msgstr ""
80
+
81
+ #: disable-comments.php:681
82
+ msgid "Default (no type)"
83
+ msgstr ""
84
+
85
+ #: disable-comments.php:781
86
+ msgid "Saved"
87
+ msgstr ""
88
+
89
+ #: disable-comments.php:846 disable-comments.php:880 disable-comments.php:903
90
+ msgid "All comments has been deleted"
91
+ msgstr ""
92
+
93
+ #: disable-comments.php:848 disable-comments.php:852
94
+ msgid "Internal error occured. Please try again later."
95
+ msgstr ""
96
+
97
+ #: includes/class-plugin-usage-tracker.php:378
98
+ msgid ""
99
+ "We can't detect any plugin information. This is most probably because you "
100
+ "have not included the code in the plugin main file."
101
+ msgstr ""
102
+
103
+ #: includes/class-plugin-usage-tracker.php:652
104
+ msgid "What we collect."
105
+ msgstr ""
106
+
107
+ #: includes/class-plugin-usage-tracker.php:653
108
+ msgid "Sure, I'd like to help"
109
+ msgstr ""
110
+
111
+ #: includes/class-plugin-usage-tracker.php:654
112
+ msgid "No Thanks."
113
+ msgstr ""
114
+
115
+ #: includes/class-plugin-usage-tracker.php:747
116
+ msgid "Sorry to see you go"
117
+ msgstr ""
118
+
119
+ #: includes/class-plugin-usage-tracker.php:748
120
+ msgid ""
121
+ "Before you deactivate the plugin, would you quickly give us your reason for "
122
+ "doing so?"
123
+ msgstr ""
124
+
125
+ #: includes/class-plugin-usage-tracker.php:751
126
+ msgid "I no longer need the plugin"
127
+ msgstr ""
128
+
129
+ #: includes/class-plugin-usage-tracker.php:753
130
+ msgid "I found a better plugin"
131
+ msgstr ""
132
+
133
+ #: includes/class-plugin-usage-tracker.php:754
134
+ msgid "Please share which plugin"
135
+ msgstr ""
136
+
137
+ #: includes/class-plugin-usage-tracker.php:756
138
+ msgid "I couldn't get the plugin to work"
139
+ msgstr ""
140
+
141
+ #: includes/class-plugin-usage-tracker.php:757
142
+ msgid "It's a temporary deactivation"
143
+ msgstr ""
144
+
145
+ #: includes/class-plugin-usage-tracker.php:759
146
+ msgid "Other"
147
+ msgstr ""
148
+
149
+ #: includes/class-plugin-usage-tracker.php:760
150
+ msgid "Please share the reason"
151
+ msgstr ""
152
+
153
+ #: includes/class-plugin-usage-tracker.php:802
154
+ msgid "Submitting form"
155
+ msgstr ""
156
+
157
+ #: includes/class-plugin-usage-tracker.php:860
158
+ msgid "Submit and Deactivate"
159
+ msgstr ""
160
+
161
+ #: includes/class-plugin-usage-tracker.php:860
162
+ msgid "Just Deactivate"
163
+ msgstr ""
164
+
165
+ #: includes/cli.php:122
166
+ msgid "Comments is disabled everywhere. "
167
+ msgstr ""
168
+
169
+ #: includes/cli.php:128 includes/cli.php:132
170
+ #. translators: %s: post types to be disabled
171
+ msgid "Comments disabled for %s. "
172
+ msgstr ""
173
+
174
+ #: includes/cli.php:137
175
+ #. translators: %s: post types to be enabled
176
+ msgid "Comments enabled for %s. "
177
+ msgstr ""
178
+
179
+ #: includes/cli.php:148
180
+ #. translators: %s: post types to be disabled in network
181
+ msgid "Custom post types: %s. "
182
+ msgstr ""
183
+
184
+ #: includes/cli.php:153
185
+ msgid "Disable Comments via XML-RPC. "
186
+ msgstr ""
187
+
188
+ #: includes/cli.php:157
189
+ msgid "Disable Comments via REST API. "
190
+ msgstr ""
191
+
192
+ #: views/partials/_delete.php:6 views/partials/_disable.php:19
193
+ #: views/partials/_disable.php:25 views/partials/_disable.php:56
194
+ msgid "Note:"
195
+ msgstr ""
196
+
197
+ #: views/partials/_delete.php:6
198
+ msgid ""
199
+ "These settings will permanently delete comments for your entire website, or "
200
+ "for specific posts and comment types."
201
+ msgstr ""
202
+
203
+ #: views/partials/_delete.php:9 views/partials/_disable.php:32
204
+ msgid "Everywhere:"
205
+ msgstr ""
206
+
207
+ #: views/partials/_delete.php:9
208
+ msgid "Permanently delete all comments on your WordPress website"
209
+ msgstr ""
210
+
211
+ #: views/partials/_delete.php:10 views/partials/_delete.php:33
212
+ #: views/partials/_delete.php:46 views/partials/_disable.php:33
213
+ msgid "Warnings:"
214
+ msgstr ""
215
+
216
+ #: views/partials/_delete.php:10
217
+ msgid "This will permanently delete comments everywhere on your website."
218
+ msgstr ""
219
+
220
+ #: views/partials/_delete.php:14
221
+ msgid "On Certain Post Types:"
222
+ msgstr ""
223
+
224
+ #: views/partials/_delete.php:29 views/partials/_disable.php:52
225
+ msgid ""
226
+ "Only the built-in post types appear above. If you want to disable comments "
227
+ "on other custom post types on the entire network, you can supply a "
228
+ "comma-separated list of post types below (use the slug that identifies the "
229
+ "post type)."
230
+ msgstr ""
231
+
232
+ #: views/partials/_delete.php:30 views/partials/_disable.php:53
233
+ msgid "Custom post types:"
234
+ msgstr ""
235
+
236
+ #: views/partials/_delete.php:33
237
+ msgid ""
238
+ "This will remove existing comment entries for the selected post type(s) in "
239
+ "the database and cannot be reverted without a database backups."
240
+ msgstr ""
241
+
242
+ #: views/partials/_delete.php:37
243
+ msgid "Delete Certain Comment Types:"
244
+ msgstr ""
245
+
246
+ #: views/partials/_delete.php:46
247
+ msgid ""
248
+ "Deleting comments by comment type will remove existing comment entries of "
249
+ "the selected comment type(s) in the database and cannot be reverted without "
250
+ "a database backup."
251
+ msgstr ""
252
+
253
+ #: views/partials/_delete.php:48
254
+ msgid "Total Comments:"
255
+ msgstr ""
256
+
257
+ #: views/partials/_delete.php:192
258
+ msgid "No comments are available for deletion."
259
+ msgstr ""
260
+
261
+ #: views/partials/_disable.php:4
262
+ msgid ""
263
+ "Configure the settings below to disable comments globally or on specific "
264
+ "types of posts."
265
+ msgstr ""
266
+
267
+ #: views/partials/_disable.php:14 views/partials/_disable.php:68
268
+ #: views/partials/_disable.php:78
269
+ msgid "On"
270
+ msgstr ""
271
+
272
+ #: views/partials/_disable.php:15 views/partials/_disable.php:69
273
+ #: views/partials/_disable.php:79
274
+ msgid "Off"
275
+ msgstr ""
276
+
277
+ #: views/partials/_disable.php:19
278
+ msgid ""
279
+ "If you enable site wise settings, You need to configure your Disable "
280
+ "Comments settings individually on every website in the network."
281
+ msgstr ""
282
+
283
+ #: views/partials/_disable.php:25
284
+ msgid ""
285
+ "This site will be controlled by the network admin until you click the "
286
+ "\"Save Changes\" button."
287
+ msgstr ""
288
+
289
+ #: views/partials/_disable.php:32
290
+ msgid "Disable comments globally on your entire website"
291
+ msgstr ""
292
+
293
+ #: views/partials/_disable.php:33
294
+ msgid ""
295
+ "This will disable comments from every page and post on your website. Use "
296
+ "this setting if you do not want to show comments anywhere."
297
+ msgstr ""
298
+
299
+ #: views/partials/_disable.php:37
300
+ msgid "On Specific Post Types:"
301
+ msgstr ""
302
+
303
+ #: views/partials/_disable.php:56
304
+ msgid ""
305
+ "Disabling comments will also disable trackbacks and pingbacks. All "
306
+ "comment-related fields will also be hidden from the edit/quick-edit screens "
307
+ "of the affected posts. These settings cannot be overridden for individual "
308
+ "posts. Comments will be visible on all other post types."
309
+ msgstr ""
310
+
311
+ #: views/partials/_disable.php:60
312
+ msgid "Disable Comments With API"
313
+ msgstr ""
314
+
315
+ #: views/partials/_disable.php:61
316
+ msgid ""
317
+ "You can disable comments made on your website using WordPress "
318
+ "specifications."
319
+ msgstr ""
320
+
321
+ #: views/partials/_disable.php:71
322
+ msgid "Disable Comments via XML-RPC"
323
+ msgstr ""
324
+
325
+ #: views/partials/_disable.php:80
326
+ msgid "Disable Comments via REST API"
327
+ msgstr ""
328
+
329
+ #: views/partials/_disable.php:84
330
+ msgid ""
331
+ "Turning on these settings will disable any comments made on your website "
332
+ "via XML-RPC or REST API specifications."
333
+ msgstr ""
334
+
335
+ #: views/partials/_disable.php:88
336
+ msgid "Save Changes"
337
+ msgstr ""
338
+
339
+ #: views/partials/_menu.php:3
340
+ msgid "About Us"
341
+ msgstr ""
342
+
343
+ #: views/partials/_menu.php:4
344
+ msgid "All Plugins"
345
+ msgstr ""
346
+
347
+ #: views/partials/_menu.php:5
348
+ msgid "Support Forum"
349
+ msgstr ""
350
+
351
+ #: views/partials/_menu.php:6
352
+ msgid "Docs"
353
+ msgstr ""
354
+
355
+ #: views/partials/_menu.php:7
356
+ msgid "Terms Of Service"
357
+ msgstr ""
358
+
359
+ #: views/partials/_menu.php:8
360
+ msgid "Privacy"
361
+ msgstr ""
362
+
363
+ #: views/partials/_sidebar.php:3
364
+ msgid "Read Our Tutorials"
365
+ msgstr ""
366
+
367
+ #: views/partials/_sidebar.php:26
368
+ msgid "What Does This Disable Comments Plugin Do"
369
+ msgstr ""
370
+
371
+ #: views/partials/_sidebar.php:49
372
+ msgid "How To Use Disable Comments Plugin With WP-CLI"
373
+ msgstr ""
374
+
375
+ #: views/partials/_sidebar.php:72
376
+ msgid "How to Disable Comments on Specific Types Of Posts"
377
+ msgstr ""
378
+
379
+ #: views/partials/_sidebar.php:95
380
+ msgid "Disable Comments For Some Particular Post"
381
+ msgstr ""
382
+
383
+ #: views/partials/_sidebar.php:118
384
+ msgid "Disable Comment For WordPress Media Files"
385
+ msgstr ""
386
+
387
+ #: views/partials/_sidebar.php:128
388
+ msgid "Disable Comments For WordPress Pages"
389
+ msgstr ""
390
+
391
+ #: views/settings.php:6
392
+ msgid "Version"
393
+ msgstr ""
394
+
395
+ #. Plugin Name of the plugin/theme
396
+ msgid "Disable Comments"
397
+ msgstr ""
398
+
399
+ #. Plugin URI of the plugin/theme
400
+ msgid "https://wordpress.org/plugins/disable-comments/"
401
+ msgstr ""
402
+
403
+ #. Description of the plugin/theme
404
+ msgid ""
405
+ "Allows administrators to globally disable comments on their site. Comments "
406
+ "can be disabled according to post type. You could bulk delete comments "
407
+ "using Tools."
408
+ msgstr ""
409
+
410
+ #. Author of the plugin/theme
411
+ msgid "WPDeveloper"
412
+ msgstr ""
413
+
414
+ #. Author URI of the plugin/theme
415
+ msgid "https://wpdeveloper.net"
416
+ msgstr ""
417
+
418
+ #: disable-comments.php:612
419
+ msgctxt "settings menu title"
420
+ msgid "Disable Comments"
421
+ msgstr ""
422
+
423
+ #: views/settings.php:9
424
+ msgctxt "Tab Name"
425
+ msgid "Disable Comments"
426
+ msgstr ""
427
+
428
+ #: views/settings.php:12
429
+ msgctxt "Tab Name"
430
+ msgid "Delete Comments"
431
+ msgstr ""
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: comments, delete comments, disable comments, spam comment, disable, stop s
5
  Requires at least: 5.0
6
  Tested up to: 5.7
7
  Requires PHP: 5.6
8
- Stable tag: 2.1.1
9
  License: GPL-3.0-or-later
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -173,6 +173,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
173
  and this project adheres to [Semantic Versioning](http://semver.org/).
174
  This will be maiintained from August 19, 2020 - @asif2bd
175
 
 
 
 
176
  = [2.1.1] - 2021-04-06 =
177
  * Improvement: Compatible with WordPress 5.7
178
  * Few minor bug fix and improvement
@@ -342,4 +345,4 @@ This will be maiintained from August 19, 2020 - @asif2bd
342
 
343
  == Upgrade Notice ==
344
 
345
- [Minor Update] Few minor bug fix and compatibility with WordPress 5.7
5
  Requires at least: 5.0
6
  Tested up to: 5.7
7
  Requires PHP: 5.6
8
+ Stable tag: 2.1.2
9
  License: GPL-3.0-or-later
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
173
  and this project adheres to [Semantic Versioning](http://semver.org/).
174
  This will be maiintained from August 19, 2020 - @asif2bd
175
 
176
+ = [2.1.2] - 2021-06-20 =
177
+ * Improvement: Fix for Attempt to read property "post_type" on null
178
+
179
  = [2.1.1] - 2021-04-06 =
180
  * Improvement: Compatible with WordPress 5.7
181
  * Few minor bug fix and improvement
345
 
346
  == Upgrade Notice ==
347
 
348
+ [Minor Update] Improvement: Fix for Attempt to read property "post_type" on null