-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 loginout block #29766
Add loginout block #29766
Conversation
Size Change: +561 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
Co-authored-by: Timothy Jacobs <[email protected]>
In a future version it may be a good idea to add an option to display the username/display name of the person who is logged in, |
Could you add some screenshots on how it's displaying? |
The CSS classes are working now. Can someone confirm if the login form works when "Redirect to current URL" is not enabled? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this Ari!
I tested and works as expected. I've left some comments and even though the text
is not editable, it can be with the loginout
filter: https://developer.wordpress.org/reference/hooks/loginout/, so I think it's okay for start.
@carolinan it worked for me. |
I was able to replicate the issue, fixed in f4d2090 👍 |
Now the block always redirect to the current URL, no matter if the option is enabled or not? |
The login form is embedded in the page, so it's not a redirection... That is the default behavior so it doesn't change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's ship the first iteration Ari. Thanks for your work here!
Thank you everyone who helped with feedback 👍 |
Do we have something similar for editing posts and pages? I mean the |
There was a discussion about not supporting the Edit links. They can be awkward to work with since they are only visible for users with edit capabilities. The admin bar also has an edit flow. |
@aristath, nice work on this PR. I left some comments regarding the block naming that could benefit from some polishing.
I guess I got used to editing the post from the list of posts on the home page. It's probably fine to do one more click 🤣 |
Description
Adds a login/out block, part of #22724
Options for the block:
Checklist: