Changeset 55703 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 05/02/2023 03:43:03 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/pluggable.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r55685 r55703 1188 1188 // If https is required and request is http, redirect. 1189 1189 if ( $secure && ! is_ssl() && false !== strpos( $_SERVER['REQUEST_URI'], 'wp-admin' ) ) { 1190 if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {1190 if ( str_starts_with( $_SERVER['REQUEST_URI'], 'http' ) ) { 1191 1191 wp_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) ); 1192 1192 exit; … … 1219 1219 // If the user wants ssl but the session is not ssl, redirect. 1220 1220 if ( ! $secure && get_user_option( 'use_ssl', $user_id ) && false !== strpos( $_SERVER['REQUEST_URI'], 'wp-admin' ) ) { 1221 if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {1221 if ( str_starts_with( $_SERVER['REQUEST_URI'], 'http' ) ) { 1222 1222 wp_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) ); 1223 1223 exit; … … 1282 1282 do_action( 'check_admin_referer', $action, $result ); 1283 1283 1284 if ( ! $result && ! ( -1 === $action && str pos( $referer, $adminurl ) === 0) ) {1284 if ( ! $result && ! ( -1 === $action && str_starts_with( $referer, $adminurl ) ) ) { 1285 1285 wp_nonce_ays( $action ); 1286 1286 die();
Note: See TracChangeset
for help on using the changeset viewer.