Closed delawski closed 1 month ago
@tharsheblows I pushed one more fix to a bug I discovered just today which is the same sort of an issue. It's here: 269ca93
When creating new Alerts, AJAX call is done to WP with a post_id = 'new'
(when editing existing alerts, those are real IDs for the alert objects). Since the value was not empty, it passed through the logic up until it attempted to get e.g. ID
or post_title
out of the nonexistent post.
Fixes #1493, #1492, #1442.
Describe your approach and how it fixes the issue.
Checklist
contributing.md
).Release Changelog
DateTimeImmutable
for handling dates instead of relying on Carbon.Release Checklist
master
branch.readme.txt
.stream.php
.Stable tag
inreadme.txt
.classes/class-plugin.php
.Change
[ ]
to[x]
to mark the items as done.