[wp-trac] [WordPress Trac] #63263: check if exists before accessing object properties of $post->comment_count
WordPress Trac
noreply at wordpress.org
Sun Apr 13 17:20:35 UTC 2025
#63263: check if exists before accessing object properties of $post->comment_count
--------------------------------+------------------------------
Reporter: Presskopp | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Feeds | Version:
Severity: normal | Resolution:
Keywords: needs-testing-info | Focuses:
--------------------------------+------------------------------
Changes (by abcd95):
* keywords: => needs-testing-info
Comment:
@Presskopp I followed everything you said, and I still don't see any
warnings anywhere.
I did the following things -
Ensured I have enough posts in the system
Changed permalinks to `/%postname%/`
Accessed an invalid post ID (like localhost/blog/?p=12345 and even
localhost/?p=12345)
However, I was only able to see the standard `404 Not Found` page without
any PHP warnings appearing. This matches the experience reported by
@dilipbheda earlier.
Is there anything more to be done?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63263#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list