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

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 25 17:01:25 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 Denis-de-Bernardy):

 Replying to [comment:35 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.

 No no, it's not. A % followed by a % returns a % sign. It reads quite
 clear to me, but that's not the point of the ticket. The point here is to
 fix wpdb->prepare().

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


More information about the wp-trac mailing list