[wp-trac] [WordPress Trac] #56306: Deprecated sql functions in the wp-db.php file

WordPress Trac noreply at wordpress.org
Fri Jul 29 13:53:22 UTC 2022


#56306: Deprecated sql functions in the wp-db.php file
-------------------------------------------+-------------------------------
 Reporter:  hilayt24                       |       Owner:  (none)
     Type:  defect (bug)                   |      Status:  reopened
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Database                       |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  needs-patch reporter-feedback  |     Focuses:  coding-standards
-------------------------------------------+-------------------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-patch => needs-patch reporter-feedback
 * focuses:   => coding-standards
 * component:  Site Health => Database


Comment:

 Hi there, thanks for the ticket!

 Replying to [comment:3 hilayt24]:
 > On reviewing the code I found that it was intentional as the condition
 for the MySQL is checked already. But its better to add the PHPCS:ignore
 so that the sniffer will skip that part.

 This is already addressed in the WordPress' PHPCS configuration file, see
 [source:tags/6.0.1/phpcs.xml.dist?marks=166-170#L165 lines 166-170]. Could
 you clarify how you run the PHPCS checks?

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


More information about the wp-trac mailing list