-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Allow network admins to manage application passwords for all users #8638
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
base: trunk
Are you sure you want to change the base?
Allow network admins to manage application passwords for all users #8638
Conversation
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN:
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
src/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php
Show resolved
Hide resolved
* @ticket 60029 | ||
* @group ms-required | ||
*/ | ||
public function test_create_item_for_user_without_role_on_main_site() { |
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.
These tests are interesting but the only question that comes to my mind is that I can't see with these tests is that the actual method WP_REST_Application_Passwords_Controller::get_user
that is causing the issue is not being asserted. So the test is failing because of an error, not because of a wrong assert.
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.
@Sukhendu2002 can you review the test?
Trac ticket: https://core.trac.wordpress.org/ticket/60029
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.