Changeset 47550 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 04/05/2020 03:00:44 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r47461 r47550 455 455 foreach ( (array) $headers as $name => $content ) { 456 456 // Only add custom headers not added automatically by PHPMailer. 457 if ( ! in_array( $name, array( 'MIME-Version', 'X-Mailer' ) ) ) {457 if ( ! in_array( $name, array( 'MIME-Version', 'X-Mailer' ), true ) ) { 458 458 $phpmailer->addCustomHeader( sprintf( '%1$s: %2$s', $name, $content ) ); 459 459 } … … 547 547 $ignore_codes = array( 'empty_username', 'empty_password' ); 548 548 549 if ( is_wp_error( $user ) && ! in_array( $user->get_error_code(), $ignore_codes ) ) {549 if ( is_wp_error( $user ) && ! in_array( $user->get_error_code(), $ignore_codes, true ) ) { 550 550 $error = $user; 551 551 … … 1466 1466 $allowed_hosts = (array) apply_filters( 'allowed_redirect_hosts', array( $wpp['host'] ), isset( $lp['host'] ) ? $lp['host'] : '' ); 1467 1467 1468 if ( isset( $lp['host'] ) && ( ! in_array( $lp['host'], $allowed_hosts ) && strtolower( $wpp['host'] ) !== $lp['host'] ) ) {1468 if ( isset( $lp['host'] ) && ( ! in_array( $lp['host'], $allowed_hosts, true ) && strtolower( $wpp['host'] ) !== $lp['host'] ) ) { 1469 1469 $location = $default; 1470 1470 } … … 2272 2272 } 2273 2273 2274 if ( in_array( $scheme, array( 'auth', 'secure_auth', 'logged_in', 'nonce' ) ) ) {2274 if ( in_array( $scheme, array( 'auth', 'secure_auth', 'logged_in', 'nonce' ), true ) ) { 2275 2275 foreach ( array( 'key', 'salt' ) as $type ) { 2276 2276 $const = strtoupper( "{$scheme}_{$type}" );
Note: See TracChangeset
for help on using the changeset viewer.