Changeset 55283 for trunk/src/wp-admin/includes/user.php
- Timestamp:
- 02/07/2023 05:43:55 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/user.php
r55099 r55283 613 613 * 614 614 * @since 5.6.0 615 * @since 6.2.0 Allow insecure HTTP connections for the local environment. 615 616 * 616 617 * @param array $request { … … 626 627 */ 627 628 function wp_is_authorize_application_password_request_valid( $request, $user ) { 628 $error = new WP_Error(); 629 $error = new WP_Error(); 630 $is_local = 'local' === wp_get_environment_type(); 629 631 630 632 if ( ! empty( $request['success_url'] ) ) { 631 633 $scheme = wp_parse_url( $request['success_url'], PHP_URL_SCHEME ); 632 634 633 if ( 'http' === $scheme ) {635 if ( 'http' === $scheme && ! $is_local ) { 634 636 $error->add( 635 637 'invalid_redirect_scheme', … … 642 644 $scheme = wp_parse_url( $request['reject_url'], PHP_URL_SCHEME ); 643 645 644 if ( 'http' === $scheme ) {646 if ( 'http' === $scheme && ! $is_local ) { 645 647 $error->add( 646 648 'invalid_redirect_scheme',
Note: See TracChangeset
for help on using the changeset viewer.