[wp-trac] [WordPress Trac] #11608: wpdb->prepare() is broken

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 25 16:54:08 UTC 2009


#11608: wpdb->prepare() is broken
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:  ryan                  
     Type:  defect (bug)  |      Status:  new                   
 Priority:  normal        |   Milestone:  3.0                   
Component:  Database      |     Version:  2.9                   
 Severity:  normal        |    Keywords:  has-patch dev-feedback
--------------------------+-------------------------------------------------

Comment(by hakre):

 Just a short note:
 {{{This function only supports a small subset of the sprintf syntax; it
 only supports %d (decimal number), %s (string).}}}
 can be extended to:
 {{{This function only supports a small subset of the sprintf syntax; it
 only supports %d (decimal number), %s (string) and %% (a literal percent
 character).}}}

 As the [http://www.php.net/manual/en/function.sprintf.php sprintf PHP
 documentation does]. Thanks for taking care everybody. It's pretty much
 summing up here.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11608#comment:34>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list