Changeset 47219 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 02/09/2020 04:52:28 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r47198 r47219 256 256 case 'from': 257 257 $bracket_pos = strpos( $content, '<' ); 258 if ( $bracket_pos !== false) {258 if ( false !== $bracket_pos ) { 259 259 // Text before the bracketed email is the "From" name. 260 260 if ( $bracket_pos > 0 ) { … … 539 539 $user = apply_filters( 'authenticate', null, $username, $password ); 540 540 541 if ( $user == null) {541 if ( null == $user ) { 542 542 // TODO: What should the error message be? (Or would these even happen?) 543 543 // Only needed if all authentication handlers fail to return anything. … … 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 ) && $lp['host'] != strtolower( $wpp['host'] )) ) {1468 if ( isset( $lp['host'] ) && ( ! in_array( $lp['host'], $allowed_hosts ) && strtolower( $wpp['host'] ) !== $lp['host'] ) ) { 1469 1469 $location = $default; 1470 1470 } … … 1545 1545 1546 1546 // The author moderated a comment on their own post. 1547 if ( $author && ! $notify_author && $post->post_author == get_current_user_id()) {1547 if ( $author && ! $notify_author && get_current_user_id() == $post->post_author ) { 1548 1548 unset( $emails[ $author->user_email ] ); 1549 1549 } … … 1958 1958 */ 1959 1959 function wp_new_user_notification( $user_id, $deprecated = null, $notify = '' ) { 1960 if ( $deprecated !== null) {1960 if ( null !== $deprecated ) { 1961 1961 _deprecated_argument( __FUNCTION__, '4.3.1' ); 1962 1962 } … … 2528 2528 2529 2529 // Reduce the value to be within the min - max range. 2530 if ( $max != 0) {2530 if ( 0 != $max ) { 2531 2531 $value = $min + ( $max - $min + 1 ) * $value / ( $max_random_number + 1 ); 2532 2532 }
Note: See TracChangeset
for help on using the changeset viewer.