[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
Mon Oct 2 04:06:20 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:  pento
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.9
Component:  Database                  |     Version:  4.8.2
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by thekt12):

 Got to learn a lot of new things from your changes. Will keep all this in
 mind while writing a path. And grouping the test cases using dataProvider
 was definitely a new knowledge for me. Thanks, @pento and good to know
 that this bug will probably be fixed in v4.9.

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


More information about the wp-trac mailing list