[wp-trac] [WordPress Trac] #56091: Using %i for table/field names in wpdb::prepare()

WordPress Trac noreply at wordpress.org
Tue Apr 2 15:27:11 UTC 2024


#56091: Using %i for table/field names in wpdb::prepare()
-----------------------------+-----------------------------
 Reporter:  craigfrancis     |       Owner:  craigfrancis
     Type:  enhancement      |      Status:  assigned
 Priority:  low              |   Milestone:  Future Release
Component:  Database         |     Version:  6.1
 Severity:  minor            |  Resolution:
 Keywords:  has-patch early  |     Focuses:
-----------------------------+-----------------------------

Comment (by johnbillion):

 @craigfrancis Do you want to refresh this for 6.6? I'd love to remove
 [https://github.com/WordPress/wordpress-
 develop/blob/6bb85810cc0899b90d4f9da224b9437160145159/phpcs.xml.dist#L131-L136
 this PHPCS config] so unprepared queries trigger an error instead of a
 warning. Implementing `%i` gets us a step closer to that.

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


More information about the wp-trac mailing list