[wp-trac] [WordPress Trac] #56499: count() used in the loop condition

WordPress Trac noreply at wordpress.org
Fri Sep 2 12:40:53 UTC 2022


#56499: count() used in the loop condition
------------------------------+-----------------------------
 Reporter:  krunal265         |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Administration    |    Version:  6.0
 Severity:  major             |   Keywords:  has-patch
  Focuses:  coding-standards  |
------------------------------+-----------------------------
 The use of count() inside a loop condition is not allowed; assign the
 return value to a variable and use the variable in the loop condition
 instead.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56499>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list