[wp-trac] [WordPress Trac] #58515: Need to use $wpdb->prepare instead of sprintf

WordPress Trac noreply at wordpress.org
Thu Jun 22 07:25:46 UTC 2023


#58515: Need to use $wpdb->prepare instead of sprintf
-------------------------------------------------+-------------------------
 Reporter:  hiren1094                            |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Query                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch reporter-feedback 2nd-     |     Focuses:  coding-
  opinion                                        |  standards
-------------------------------------------------+-------------------------

Comment (by johnbillion):

 Thanks again both of you. What problem is being fixed here? The latest
 patch now uses the `prepare()` method incorrectly because its second
 parameter isn't used.

 Can you clarify the problem? I'm not sure there's anything that needs to
 be fixed here.

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


More information about the wp-trac mailing list