Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#46508 closed enhancement (fixed)

Uses strict comparison in WP_Post

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

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

Download all attachments as: .zip

Change History (3)

#1 @SergeyBiryukov
8 years ago

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

#2 @SergeyBiryukov
8 years ago

  • Resolution → fixed
  • Status reviewing → 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.