[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
Sun Oct 1 06:12:08 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 has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by thekt12):

 Added new patch for this ticket. (42040-patch-v2.diff).

 Also, asper the discussion in #42045 , i have change my test cases to one
 assertion per test.

 (42040-one-assertion-per-test-testcases-v1.diff)

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


More information about the wp-trac mailing list