[wp-trac] [WordPress Trac] #60581: Redundant variable type check

WordPress Trac noreply at wordpress.org
Sat May 18 15:19:25 UTC 2024


#60581: Redundant variable type check
-------------------------+-----------------------------
 Reporter:  david.binda  |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  6.6
Component:  Shortcodes   |     Version:  6.5
 Severity:  minor        |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58168" 58168]:
 {{{
 #!CommitTicketReference repository="" revision="58168"
 Shortcodes: Remove redundant variable type check in
 `get_post_galleries()`.

 `shortcode_parse_atts()` always returns an array as of [57597], so the
 check is no longer needed.

 Follow-up to [40070], [57597].

 Props david.binda, swissspidy, oglekler.
 Fixes #60581.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60581#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list