Changeset 12758 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php
- Timestamp:
- 07/25/2023 04:07:53 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php
r12685 r12758 582 582 // If the redirect is to a url that doesn't seem right, override it. 583 583 $redirect_host = parse_url( $redirect, PHP_URL_HOST ); 584 $redirect_qv = parse_url( $redirect, PHP_URL_QUERY ); 584 585 $proper_host = parse_url( $_COOKIE['wporg_came_from'], PHP_URL_HOST ); 585 586 if ( … … 591 592 'login.wordpress.org', // Default redirect for priv'd users. 592 593 ] 594 ) && 595 // Don't override if the redirect is back to an OIDC destination. 596 ! ( 597 'login.wordpress.org' == $redirect_host && 598 str_contains( $redirect_qv, 'response_type=code' ) 593 599 ) 594 600 ) {
Note: See TracChangeset
for help on using the changeset viewer.