[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:42:35 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       |  Resolution:
 Keywords:  has-patch    |     Focuses:  coding-standards, php-
                         |  compatibility
-------------------------+-------------------------------------------------

Comment (by SergeyBiryukov):

 Hi there, welcome to WordPress Trac! Thanks for the ticket.

 Please note that `wp-includes/rss.php` is a former external library
 (MagpieRSS). It does not follow the  WordPress coding standards, which is
 why it is [source:tags/6.3.2/phpcs.xml.dist?marks=124#L113 excluded from
 PHPCS checks].

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


More information about the wp-trac mailing list