Make WordPress Core

Changeset 59556


Ignore:
Timestamp:
12/22/2024 10:42:35 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp_handle_comment_submission().

Follow-up to [549], [1985], [2464], [2556], [2558], [34799], [40667].

Props deepakrohilla, narenin.
See #62316.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r59319 r59556  
    36593659
    36603660    if ( get_option( 'require_name_email' ) && ! $user->exists() ) {
    3661         if ( '' == $comment_author_email || '' == $comment_author ) {
     3661        if ( '' === $comment_author_email || '' === $comment_author ) {
    36623662            return new WP_Error( 'require_name_email', __( '<strong>Error:</strong> Please fill the required fields.' ), 200 );
    36633663        } elseif ( ! is_email( $comment_author_email ) ) {
Note: See TracChangeset for help on using the changeset viewer.