[wp-trac] [WordPress Trac] #60581: Redundant variable type check
WordPress Trac
noreply at wordpress.org
Tue Feb 20 14:07:32 UTC 2024
#60581: Redundant variable type check
-------------------------+-----------------------------
Reporter: david.binda | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
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 [https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/media.php?rev=57597#L5068 get_post_galleries] function is, IMHO,
no longer needed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60581>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list