Skip to content

Fixed wrong return value for `CREATE`, `ALTER`, `TRUNCATE` and `DROP`

John James Jacoby requested to merge pull/10/master into master

Created by: strategio

  • Added a condition to return bool(true) instead of int(0) for those queries
  • Updated readme.txt

This is now complying with the Codex specification in https://codex.wordpress.org/Class_Reference/wpdb#General_Syntax

This fix is required for https://wordpress.org/support/topic/truncate-queries-return-wrong-data-type

Merge request reports

Loading