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

Navigation: Add "Log in" link to local nav #368

Closed

Conversation

ryelle
Copy link
Contributor

@ryelle ryelle commented Sep 10, 2024

This updates the Plugin Directory to include the "Log in" link in the local navigation across the site. The link only appears when you're logged out, once logged in, you can manage your account/login status in the admin bar.

I've already deactivated the "Logged Out Admin Bar" plugin on this site, so it won't show until you log in (and then it will show on all sites, see WordPress/wporg-mu-plugins@3b39f5f).

See WordPress/wporg-mu-plugins#647

(See also WordPress/wporg-theme-directory#156 for the same change on the Theme Directory)

Screenshots

Logged out Logged in
Screen Shot 2024-09-10 at 11 48 19 Screen Shot 2024-09-10 at 11 49 17

How to test the changes in this Pull Request:

  1. Be logged out
  2. There should be a "log in" link
  3. Clicking it and signing in should redirect you back to the page you were just on
  4. The "log in" link should not appear
  5. You should see the admin bar

cc @WordPress/meta-design

Copy link

@adamwoodnz adamwoodnz left a comment

Choose a reason for hiding this comment

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

Works for me 🚀

@jasmussen
Copy link

Nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants