Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/CDPT-2258 Handle empty post and text domain. Add constructor to notify-for-wordpress #770

Merged

Conversation

EarthlingDavey
Copy link
Contributor

There is a bug where the notify dashboard was firing a fatal php error.

This was because the plugin was not setting the text-domain correctly. This has been fixed in the upstream git repo and a patch fix in this PR.

In a defensive programming move, coauthors_filter_text has been changed so that text domain is an optional string.

$post?->post_type should also fix the warning Attempt to read property "post_type" on null

Copy link
Contributor

@wilson1000 wilson1000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's run this through to prevent the error. Do we have to keep an eye on this, to make sure an update doesn't break anything?

@EarthlingDavey
Copy link
Contributor Author

Good shout, I've made a note in the upstream PR that this find and replace must be removed if the upstream PR is merged and released.

@EarthlingDavey EarthlingDavey merged commit 4fab7db into main Nov 5, 2024
6 checks passed
@EarthlingDavey EarthlingDavey deleted the bug/cdpt-2258-handle-empty-post-and-text-domain branch November 5, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants