Make WordPress Core

Changeset 59596


Ignore:
Timestamp:
01/10/2025 06:12:08 PM (4 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in get_posts_by_author_sql().

Follow-up to [13576], [25669].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.

File:
1 edited

Legend:

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

    r59593 r59596  
    73597359                if ( null === $post_author || ! $full ) {
    73607360                    $post_status_sql .= " OR post_status = 'private' AND post_author = $id";
    7361                 } elseif ( $id == (int) $post_author ) {
     7361                } elseif ( $id === (int) $post_author ) {
    73627362                    $post_status_sql .= " OR post_status = 'private'";
    73637363                } // Else none.
Note: See TracChangeset for help on using the changeset viewer.