Make WordPress Core

Opened 2 months ago

Last modified 2 months ago

#60581 new enhancement

Redundant variable type check

Reported by: davidbinda's profile david.binda Owned by:
Milestone: 6.6 Priority: normal
Severity: minor Version: 6.5
Component: Shortcodes Keywords: has-patch
Focuses: Cc:

Description

After the r57597, which is ensuring that the return type of the shortcode_parse_atts function is always an array, the is_array check in get_post_galleries function is, IMHO, no longer needed.

Attachments (1)

60581.diff (552 bytes) - added by david.binda 2 months ago.

Download all attachments as: .zip

Change History (2)

@david.binda
2 months ago

#1 @swissspidy
2 months ago

  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 6.6
  • Severity changed from normal to minor

Makes sense, good catch.

Note: See TracTickets for help on using tickets.