[wp-trac] [WordPress Trac] #53025: Change to get_permalink in 5.7 breaks existing code
WordPress Trac
noreply at wordpress.org
Tue Apr 13 05:48:17 UTC 2021
#53025: Change to get_permalink in 5.7 breaks existing code
--------------------------+----------------------
Reporter: turbodb | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Permalinks | Version: 5.7
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by peterwilsoncc):
* status: new => closed
* resolution: => invalid
* component: Security => Permalinks
* milestone: Awaiting Review =>
Comment:
Hi and welcome to trac and thanks for following up.
You're correct, previous versions of WordPress checked hard-coded status
names rather than using the properties of the status object. While working
on #5272, I discovered this was causing problems in some circumstances.
If it's any consolation, I recently found a similar typo to `published` in
WordPress's own unit tests. It's an easy mistake to make.
Again, thank you for following up and I will close this ticket off as
requested.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53025#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list