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

Add the last-logged-in date from profiles into the wp-admin users listing. #412

Merged
merged 6 commits into from
Jun 26, 2023

Conversation

dd32
Copy link
Member

@dd32 dd32 commented Jun 26, 2023

See https://wordpress.slack.com/archives/C01KC5VDQBC/p1687415670773149 for the conversation that spurred this.

Access to the wp-admin screen is controlled by the list_users cap which should be high enough for this purpose, but it's explicitly added such as not to leak onto other queries.

This doesn't support cases where the user meta_queries are added, which there are none currently (such this couldn't be tested).

Note: This triggers a HyperDB issue at present, see referenced issues below

Examples
Screenshot 2023-06-26 at 10 41 00 am Screenshot 2023-06-26 at 10 41 13 am

@dd32 dd32 merged commit 53a91ec into trunk Jun 26, 2023
@dd32 dd32 deleted the add/admin/users-last-logged-in branch June 26, 2023 02:57
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.

1 participant