Changeset 49109 for trunk/src/wp-login.php
- Timestamp:
- 10/08/2020 10:12:02 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-login.php
r49078 r49109 1372 1372 } elseif ( WP_Recovery_Mode_Link_Service::LOGIN_ACTION_ENTERED === $action ) { 1373 1373 $errors->add( 'enter_recovery_mode', __( 'Recovery Mode Initialized. Please log in to continue.' ), 'message' ); 1374 } elseif ( isset( $_GET['redirect_to'] ) && false !== strpos( $_GET['redirect_to'], 'wp-admin/authorize-application.php' ) ) { 1375 $query_component = wp_parse_url( $_GET['redirect_to'], PHP_URL_QUERY ); 1376 parse_str( $query_component, $query ); 1377 1378 if ( ! empty( $query['app_name'] ) ) { 1379 /* translators: 1: Website name, 2: Application name. */ 1380 $message = sprintf( 'Please log in to %1$s to authorize %2$s to connect to your account.', get_bloginfo( 'name', 'display' ), '<strong>' . esc_html( $query['app_name'] ) . '</strong>' ); 1381 } else { 1382 /* translators: Website name. */ 1383 $message = sprintf( 'Please log in to %s to proceed with authorization.', get_bloginfo( 'name', 'display' ) ); 1384 } 1385 1386 $errors->add( 'authorize_application', $message, 'message' ); 1374 1387 } 1375 1388 }
Note: See TracChangeset
for help on using the changeset viewer.