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

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 25 16:55:04 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 miqrogroove):

 Replying to [comment:33 hakre]:
 > You're wrong,
 >     6. A type specifier that says ...
 >     * % - a literal percent character. No argument is required.

 No, the documentation is wrong.  As illustrated in the previous ticket,
 bare % characters cause vsprintf to return bool(false).

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


More information about the wp-trac mailing list