Make WordPress Core

Opened 6 years ago

Closed 6 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:

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

Download all attachments as: .zip

Change History (3)

@andizer
6 years ago

#1 @SergeyBiryukov
6 years ago

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

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