[wp-trac] [WordPress Trac] #53359: Coding Standards fixes for WP 5.9

WordPress Trac noreply at wordpress.org
Wed Jun 30 17:43:45 UTC 2021


#53359: Coding Standards fixes for WP 5.9
----------------------------+---------------------
 Reporter:  desrosj         |       Owner:  (none)
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  5.9
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"51285" 51285]:
 {{{
 #!CommitTicketReference repository="" revision="51285"
 Coding Standards: Remove redundant type casting to array in
 `WP_Query::get_posts()`.

 This brings some consistency with other instances of using
 `get_post_stati()` in core.

 `get_post_stati()` always returns an array, so the type casting is not
 needed.

 Follow-up to [13172].

 See #53359.
 }}}

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


More information about the wp-trac mailing list