[wp-trac] [WordPress Trac] #44124: Adding is_countable() check to custom-header.php

WordPress Trac noreply at wordpress.org
Thu May 17 16:30:16 UTC 2018


#44124: Adding is_countable() check to custom-header.php
-------------------------------------+------------------------------
 Reporter:  ianbelanger              |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------------

Comment (by jrf):

 You may also want to add a is_iterable()` wrapper around the `foreach()`
 just below within the same function or move the whole block of code below
 within the `if ( is_countable() & count() > 1 ) {}` wrapper.

 https://core.trac.wordpress.org/browser/trunk/src/wp-admin/custom-
 header.php#L295

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


More information about the wp-trac mailing list