[wp-trac] [WordPress Trac] #63263: check if exists before accessing object properties of $post->comment_count
WordPress Trac
noreply at wordpress.org
Mon Apr 14 07:30:25 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 has-screenshots | Focuses:
------------------------------------------------+--------------------------
Comment (by Presskopp):
As you can see on the screenshot, there's also an issue with the property
"ID" using the Twenty Ten Theme. So we could open the scope of this ticket
to a general check if objects and their properties exists, before
assigning a value.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63263#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list