[wp-trac] [WordPress Trac] #59731: Count function inside of the loop not allowed as per phpcs rules

WordPress Trac noreply at wordpress.org
Wed Oct 25 11:17:28 UTC 2023


#59731: Count function inside of the loop not allowed as per phpcs rules
-------------------------------------------------+-------------------------
 Reporter:  mihirdev21                           |      Owner:  (none)
     Type:  enhancement                          |     Status:  new
 Priority:  normal                               |  Milestone:  Awaiting
                                                 |  Review
Component:  General                              |    Version:
 Severity:  normal                               |   Keywords:  needs-patch
  Focuses:  coding-standards, php-compatibility  |
-------------------------------------------------+-------------------------
 I have checked the rss.php file and i discovered that the count function
 is not allowed in the loop as per phpcs rules so i have added two
 variables and updated the code

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


More information about the wp-trac mailing list