Opened 5 years ago
Last modified 5 years ago
#49153 new defect (bug)
Undefined Variable Warning
Reported by: | tweidman | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | reporter-feedback has-patch |
Focuses: | Cc: |
Description
Notice: Undefined property: WP_Post::$filter in wp-includes/class-wp-post.php on line 342
The fix is simple change the if statement to:
if ( !empty( $this->filter ) ) {
Attachments (3)
Change History (6)
#1
@
5 years ago
- Component changed from General to Posts, Post Types
- Keywords reporter-feedback added
Hi there, welcome to WordPress Trac! Thanks for the report.
- Could you provide the steps to reproduce the warning on a clean install?
- Does the issue still happen with all plugins disabled and a default theme (Twenty Twenty) activated?
Note: See
TracTickets for help on using
tickets.
Fixed version of the file