[wp-trac] [WordPress Trac] #43583: Introduce new PHP cross-version compat function `is_countable()`

WordPress Trac noreply at wordpress.org
Thu May 10 17:57:40 UTC 2018


#43583: Introduce new PHP cross-version compat function `is_countable()`
-------------------------------------------------+-------------------------
 Reporter:  jrf                                  |       Owner:
                                                 |  SergeyBiryukov
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  4.9.6
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note commit                                    |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"43220" 43220]:
 {{{
 #!CommitTicketReference repository="" revision="43220"
 General: In the `is_countable()` polyfill, if the provided object
 implements `SimpleXMLElement` or `ResourceBundle`, consider it countable.

 Props ayeshrajans, jrf, desrosj.
 Fixes #43583.
 }}}

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


More information about the wp-trac mailing list