[wp-trac] [WordPress Trac] #42040: `$wpdb->prepare` returns blank without notice if less number of arguments are passed. should give a notice or exception

WordPress Trac noreply at wordpress.org
Sat Sep 30 14:38:21 UTC 2017


#42040: `$wpdb->prepare` returns blank without notice if less number of arguments
are passed. should give a notice or exception
----------------------------------------+------------------------------
 Reporter:  thekt12                     |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Database                    |     Version:  4.8.2
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------------

Comment (by jdgrimes):

 @thekt12 For testing the notices, you can use the
 `@expectedIncorrectUsage` annotation. Examples: https://codesymphony.co
 /wordpress-unit-test-suite-introduces-expectedincorrectusage/

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


More information about the wp-trac mailing list