Make WordPress Core

Opened 11 hours ago

Last modified 11 hours ago

#66155 new enhancement

This change removes redundant strict comparisons flagged by PHPStan and simplifies the affected conditions.

Reported by: arshidkv12 Owned by:
Priority: normal Milestone: Awaiting Review
Component: General Version:
Severity: normal Keywords:
Cc: Focuses:

Description

  • WP_Links_List_Table: Check $cat_id against 0 instead of comparing it with the string 'all'.
  • wp_get_layout_style(): Check for an empty string after trim() instead of checking against null.
  • WP_Rewrite: Simplify array_search() result checks by testing only against false; array_search() does not return null.
  • PHPStan baseline: Remove the corresponding notIdentical.alwaysTrue suppressions that are no longer needed.

This is a cleanup-only change with no intended behavioral change.

Attachments (1)

patch.diff (3.3 KB ) - added by arshidkv12 11 hours ago.

Download all attachments as: .zip

Change History (2)

#1 @arshidkv12
11 hours ago

  • Type defect (bug)enhancement

@arshidkv12
11 hours ago

Note: See TracTickets for help on using tickets.