Skip to content

Commit d42ce51

Browse files
Use strong comparison to check if notifications are disabled
1 parent 2a7e69d commit d42ce51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ public function create_item( $request ) {
660660
* @param int $user_id User ID.
661661
*/
662662
$notify = apply_filters( 'rest_wp_user_created_notification', $notify = 'admin', $user_id );
663-
if ( $notify && 'false' != $notify ) {
663+
if ( $notify && 'false' !== $notify ) {
664664
wp_new_user_notification( $user_id, null, $notify );
665665
}
666666

0 commit comments

Comments
 (0)