[wp-trac] [WordPress Trac] #61860: PHPCS: Empty FOREACH statement detected

WordPress Trac noreply at wordpress.org
Mon Aug 12 12:06:50 UTC 2024


#61860: PHPCS: Empty FOREACH statement detected
-------------------------------+------------------------------
 Reporter:  dhruvang21         |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Formatting         |     Version:  4.2.3
 Severity:  normal             |  Resolution:
 Keywords:  changes-requested  |     Focuses:  docs
-------------------------------+------------------------------

Comment (by TobiasBg):

 Thanks, @jrf!

 Indeed, it appears that this syntax was originally used, but changed
 (semi-automatically) in
 https://core.trac.wordpress.org/changeset/42343/trunk/src/wp-
 includes/formatting.php some years ago.

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


More information about the wp-trac mailing list