Changeset 55988 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 06/22/2023 02:34:56 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r55703 r55988 280 280 // Iterate through the raw headers. 281 281 foreach ( (array) $tempheaders as $header ) { 282 if ( strpos( $header, ':' ) === false) {282 if ( ! str_contains( $header, ':' ) ) { 283 283 if ( false !== stripos( $header, 'boundary=' ) ) { 284 284 $parts = preg_split( '/boundary=/i', trim( $header ) ); … … 316 316 break; 317 317 case 'content-type': 318 if ( str pos( $content, ';' ) !== false) {318 if ( str_contains( $content, ';' ) ) { 319 319 list( $type, $charset_content ) = explode( ';', $content ); 320 320 $content_type = trim( $type ); … … 1187 1187 1188 1188 // If https is required and request is http, redirect. 1189 if ( $secure && ! is_ssl() && false !== strpos( $_SERVER['REQUEST_URI'], 'wp-admin' ) ) {1189 if ( $secure && ! is_ssl() && str_contains( $_SERVER['REQUEST_URI'], 'wp-admin' ) ) { 1190 1190 if ( str_starts_with( $_SERVER['REQUEST_URI'], 'http' ) ) { 1191 1191 wp_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) ); … … 1218 1218 1219 1219 // If the user wants ssl but the session is not ssl, redirect. 1220 if ( ! $secure && get_user_option( 'use_ssl', $user_id ) && false !== strpos( $_SERVER['REQUEST_URI'], 'wp-admin' ) ) {1220 if ( ! $secure && get_user_option( 'use_ssl', $user_id ) && str_contains( $_SERVER['REQUEST_URI'], 'wp-admin' ) ) { 1221 1221 if ( str_starts_with( $_SERVER['REQUEST_URI'], 'http' ) ) { 1222 1222 wp_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );
Note: See TracChangeset
for help on using the changeset viewer.