Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#46508 closed enhancement (fixed)

Uses strict comparison in WP_Post

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


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 5 years ago.

Download all attachments as: .zip

Change History (3)

5 years ago

#1 @SergeyBiryukov
5 years ago

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

#2 @SergeyBiryukov
5 years 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.