Repository navigation
Application Passwords: Clarify that the environment type must be `loc… - #13954
Vedanshmini26 wants to merge 3 commits into
Conversation
…al`. On sites without HTTPS, the user profile screen told administrators that application passwords could be enabled on a "development website" by setting the environment type accordingly. However, `wp_is_application_passwords_supported()` only allows the `local` environment type, so setting it to `development` left the feature unavailable. This updates the message to state that the environment type must be set to `local`. Fixes #57388.
|
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. |
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. |
On sites without HTTPS, the Application Passwords section of the user profile screen says:
This suggests setting
WP_ENVIRONMENT_TYPEtodevelopment. However,wp_is_application_passwords_supported()only allowslocal:So following the message leaves the feature unavailable, and the same notice keeps showing.
This PR updates the message to name the required value:
The support check itself is unchanged. Allowing
developmentwould enable Application Passwords over plain HTTP on development sites, which can be publicly reachable. Only the message needed correcting.Testing Instructions
define( 'WP_ENVIRONMENT_TYPE', 'development' );towp-config.php.local.localand reload. The Application Passwords form appears.Trac ticket: https://core.trac.wordpress.org/ticket/57388