WordPress.org

Make WordPress Core

#46508 closed enhancement (fixed)

Uses strict comparison in WP_Post

Reported by: andizer Owned by: SergeyBiryukov
Milestone: 5.2 Priority: normal
Severity: normal Version: 5.2
Component: Posts, Post Types Keywords: has-patch
Focuses: Cc:

Description

Improvement in doing comparisons in WP_Post:

  • Do strict comparison where possible.
  • Flipped one comparison to have the Yoda style

Attachments (1)

46508.diff (1.9 KB) - added by andizer 13 months ago.

Download all attachments as: .zip

Change History (3)

@andizer
13 months ago

#1 @SergeyBiryukov
13 months ago

  • Milestone changed from Awaiting Review to 5.2
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#2 @SergeyBiryukov
13 months ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 44914:

Coding Standards: Use strict comparison in WP_Post where possible.

Props andizer.
Fixes #46508.

Note: See TracTickets for help on using tickets.