Changeset 57882
- Timestamp:
- 03/26/2024 09:39:36 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r57693 r57882 31 31 if ( isset( $current_user ) 32 32 && ( $current_user instanceof WP_User ) 33 && ( $id == $current_user->ID )33 && ( $id === $current_user->ID ) 34 34 && ( null !== $id ) 35 35 ) { … … 618 618 $user = apply_filters( 'authenticate', null, $username, $password ); 619 619 620 if ( null == $user ) {620 if ( null === $user ) { 621 621 /* 622 622 * TODO: What should the error message be? (Or would these even happen?) … … 1094 1094 setcookie( $auth_cookie_name, $auth_cookie, $expire, ADMIN_COOKIE_PATH, COOKIE_DOMAIN, $secure, true ); 1095 1095 setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, $expire, COOKIEPATH, COOKIE_DOMAIN, $secure_logged_in_cookie, true ); 1096 if ( COOKIEPATH != SITECOOKIEPATH ) {1096 if ( COOKIEPATH !== SITECOOKIEPATH ) { 1097 1097 setcookie( LOGGED_IN_COOKIE, $logged_in_cookie, $expire, SITECOOKIEPATH, COOKIE_DOMAIN, $secure_logged_in_cookie, true ); 1098 1098 } … … 1316 1316 */ 1317 1317 function check_ajax_referer( $action = -1, $query_arg = false, $stop = true ) { 1318 if ( -1 == $action ) {1318 if ( -1 === $action ) { 1319 1319 _doing_it_wrong( __FUNCTION__, __( 'You should specify an action to be verified by using the first parameter.' ), '4.7.0' ); 1320 1320 } … … 1699 1699 1700 1700 // The comment was left by the author. 1701 if ( $author && ! $notify_author && $comment->user_id ==$post->post_author ) {1701 if ( $author && ! $notify_author && (int) $comment->user_id === (int) $post->post_author ) { 1702 1702 unset( $emails[ $author->user_email ] ); 1703 1703 } 1704 1704 1705 1705 // The author moderated a comment on their own post. 1706 if ( $author && ! $notify_author && get_current_user_id() == $post->post_author ) {1706 if ( $author && ! $notify_author && get_current_user_id() === (int) $post->post_author ) { 1707 1707 unset( $emails[ $author->user_email ] ); 1708 1708 }
Note: See TracChangeset
for help on using the changeset viewer.