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

WordPress Trac noreply at wordpress.org
Thu May 10 17:58:48 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                                    |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

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

 Props ayeshrajans, jrf, desrosj.
 Merges [43220] to the 4.9 branch.
 Fixes #43583.
 }}}

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


More information about the wp-trac mailing list