[wp-trac] [WordPress Trac] #54736: get_sample_permalink unsets $post->filter even though this is a public property.
WordPress Trac
noreply at wordpress.org
Tue Jan 4 12:43:20 UTC 2022
#54736: get_sample_permalink unsets $post->filter even though this is a public
property.
--------------------------+-----------------------------
Reporter: herregroen | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The property should be set to `null` rather than being `unset`.
Unsetting it removes it entirely which means if it's later requested (
such as in `WP_Post::__get` ) this causes a notice to be thrown that the
property doesn't exist.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54736>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list