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

Remove subrole restriction to show cross link menu item #979

Merged
merged 2 commits into from
Jul 26, 2023

Conversation

iandunn
Copy link
Member

@iandunn iandunn commented Jul 25, 2023

Fixes #961

The capability is needed on all sites for add_wcpt_cross_link() to work.

Note: Being a deputy is required in order to pass the is_user_member_of_blog() check in wp_admin_bar_site_menu().

@iandunn iandunn self-assigned this Jul 25, 2023
@iandunn
Copy link
Member Author

iandunn commented Jul 25, 2023

This is working in manual tests, but it looks like the unit tests are failing for an unrelated reason. I'll look into that tomorrow.

@iandunn iandunn mentioned this pull request Jul 26, 2023
This enables the "WordCamp Post" link in the admin bar for deputies.
@iandunn iandunn force-pushed the subrole-central-restriction branch from 7690d65 to 3bf1218 Compare July 26, 2023 16:20
@iandunn iandunn marked this pull request as ready for review July 26, 2023 16:46
@iandunn iandunn merged commit d4c538c into production Jul 26, 2023
3 checks passed
@iandunn iandunn deleted the subrole-central-restriction branch July 26, 2023 16:48
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.

Fix add_wcpt_cross_link function
1 participant