Go to file
Gary Pendergast 3ce2cd9310 Database: Restore numbered placeholders in wpdb::prepare().
[41496] removed support for numbered placeholders in queries send through `wpdb::prepare()`, which, despite being undocumented, were quite commonly used.

This change restores support for numbered placeholders (as well as a subset of placeholder formatting), while also adding extra checks to ensure the correct number of arguments are being passed to `wpdb::prepare()`, given the number of placeholders.

Merges [41662], [42056] to the 3.7 branch.
See #41925.



git-svn-id: https://develop.svn.wordpress.org/branches/3.7@42068 602fd350-edb4-49c9-b593-d223f7449a82
2017-10-31 13:01:54 +00:00
src Database: Restore numbered placeholders in wpdb::prepare(). 2017-10-31 13:01:54 +00:00
tests Database: Restore numbered placeholders in wpdb::prepare(). 2017-10-31 13:01:54 +00:00
tools/i18n Remove lingering instances of call time pass-by-reference, limited to instances of callable - use $this instead of &$this. 2013-09-05 16:33:50 +00:00
.gitignore Move wp-config-sample.php to the root of develop.svn. 2013-08-29 20:45:17 +00:00
Gruntfile.js New grunt copy:version task that removes -src from $wp_version on build. 2013-10-06 10:33:01 +00:00
package.json Bump 3.7 branch to version 3.7.22. 2017-09-19 20:13:28 +00:00
phpunit.xml.dist Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
wp-config-sample.php Move wp-config-sample.php to the root of develop.svn. 2013-08-29 20:45:17 +00:00
wp-tests-config-sample.php Database: Restore numbered placeholders in wpdb::prepare(). 2017-10-31 13:01:54 +00:00