[wp-trac] [WordPress Trac] #44304: API will create PHP warning and thus break code on empty category

WordPress Trac noreply at wordpress.org
Tue Jun 5 08:42:20 UTC 2018


#44304: API will create PHP warning and thus break code on empty category
--------------------------+------------------------------
 Reporter:  apermo        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  4.9.6
 Severity:  minor         |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------
Changes (by swissspidy):

 * keywords:   => needs-patch


Comment:

 We could also use `is_iterable()` now, see #43619.

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


More information about the wp-trac mailing list