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

Undefined array key "comment_content" #368

Open
edent opened this issue Apr 6, 2023 · 1 comment
Open

Undefined array key "comment_content" #368

edent opened this issue Apr 6, 2023 · 1 comment
Milestone

Comments

@edent
Copy link
Contributor

edent commented Apr 6, 2023

If a WebMention doesn't have any content (for example a like or repost) then WordPress complains with

PHP Warning: Undefined array key "comment_content" in /home/blog/wp-includes/comment.php on line 2130

Would it make sense to either add a blank space or the text "so-and-so liked this on example.com"?

@pfefferle
Copy link
Owner

This is weird, because it should at least have the key... it should be empty, but not inexistent.

@dshanske dshanske added this to the 5.1.0 milestone Apr 7, 2023
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

No branches or pull requests

3 participants