πŸ”’ EXCLUSIVE: WordPress/wordpress develop/pull/ - Collection

Skip to content

Conversation

@peterwilsoncc

https://core.trac.wordpress.org/ticket/53386

Prevent infinite loop on MS if wp_is_application_passwords_available_for_user includes a user cap check.

Bypass wp_get_current_user() in is_super_admin() when possible.

In #28020 get_userdata() and wp_get_current_user() started returning the same object so there is no need to duplicate the check used in the is_super_admin() function.


I need some assistance creating the infinite loop in the tests. I couldn't get one going prior to the patch being applied.

…_for_user` includes a user cap check.

Bypass `wp_get_current_user()` in `is_super_admin()` when possible.

In #28020 `get_userdata()` and `wp_get_current_user()` started returning the same object so there is no need to duplicate the check used in the `is_super_admin()` function.
@peterwilsoncc

@peterwilsoncc peterwilsoncc deleted the 53386-app-pw-loop branch November 15, 2021 03:16
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.

2 participants