Make WordPress Core

Changeset 59593


Ignore:
Timestamp:
01/08/2025 05:46:54 PM (22 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp_check_for_changed_dates().

Follow-up to [42401].

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

File:
1 edited

Legend:

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

    r59584 r59593  
    72567256
    72577257        // Don't bother if it hasn't changed.
    7258         if ( $new_date == $previous_date ) {
     7258        if ( $new_date === $previous_date ) {
    72597259                return;
    72607260        }
    72617261
    72627262        // We're only concerned with published, non-hierarchical objects.
    7263         if ( ! ( 'publish' === $post->post_status || ( 'attachment' === get_post_type( $post ) && 'inherit' === $post->post_status ) ) || is_post_type_hierarchical( $post->post_type ) ) {
     7263        if ( ! ( 'publish' === $post->post_status || ( 'attachment' === $post->post_type && 'inherit' === $post->post_status ) )
     7264                || is_post_type_hierarchical( $post->post_type )
     7265        ) {
    72647266                return;
    72657267        }
Note: See TracChangeset for help on using the changeset viewer.