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
Pattern moderation: Users appear as "unknown" in logs and internal notes #431
Comments
I've run into that a few times, here and on WordCamp too, usually I end up adding a field to the API to return it, since PHP has no trouble getting that user data. For example, the pattern-directory/public_html/wp-content/plugins/pattern-directory/includes/pattern-post-type.php Lines 344 to 371 in 349d206
I think it would be great if we had a new endpoint to get this info. There's a related core ticket, but it has almost no activity in the last 5 years…
Would it be that different from how the regular |
This was fixed with WordPress/wporg-mu-plugins#184 & WordPress/wporg-mu-plugins#192. |
This is happening because the users aren't actually members of the Pattern Directory site, they are just in the global user table.
The Internal Notes plugin uses WP's rest api embedding feature to pull author data into the response that contains the note data, but again, that doesn't work when the "author" is not a member of the site. One solution to this might be to create a new rest endpoint (that maybe lives in
wporg-mu-plugins
?) for retrieving global user info. That could definitely have privacy implications, so it'd would probably require some capability checks before responding with any data.@ryelle has this issue with the global user table come up anywhere else in the Pattern Directory? How is it being addressed there?
The text was updated successfully, but these errors were encountered: