[wp-trac] [WordPress Trac] #34918: Orphaned Comments From Nonexistent Post Type Causes Capability Warnings in Admin
WordPress Trac
noreply at wordpress.org
Fri Dec 11 04:56:58 UTC 2015
#34918: Orphaned Comments From Nonexistent Post Type Causes Capability Warnings in
Admin
--------------------------+------------------------------
Reporter: Funkatronic | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: trunk
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses: administration
--------------------------+------------------------------
Comment (by Funkatronic):
Replying to [comment:5 boonebgorges]:
> +1 to [comment:2 SergeyBiryukov]. The notice is by design; it warns the
admin that the proper cap checks are not taking place. And the decision to
leave this content (instead of hiding it) was a conscious one.
>
> That said, @Funkatronic pointed out to me in a DM a powerful argument
for hiding comments orphaned in this way: we don't show *posts* from
unregistered post types. Does anyone else have a thought about this?
+1 from me, but that's a given :p.
To me it makes sense to hide the comments if the posts they are connected
to are "gone".
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34918#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list