Go to file
Gary Pendergast 000809964a WPDB: Check that `AUTH_SALT` is not empty.
In `wpdb::placeholder_escape()`, the key for `hash_hmac()` defaults to `AUTH_SALT`, but `hash_hmac()` will return an empty string if the key is empty.

This had the side effect of the string `{}` being incorrectly replaced with a `%` character in queries just about to be run on the database.

Props jsonfry.
Fixes #42431.



git-svn-id: https://develop.svn.wordpress.org/trunk@42120 602fd350-edb4-49c9-b593-d223f7449a82
2017-11-07 01:08:11 +00:00
src WPDB: Check that `AUTH_SALT` is not empty. 2017-11-07 01:08:11 +00:00
tests Bundled Themes: Fix fragile `update-theme` phpunit test which broke after version updates in [42105]. 2017-11-02 01:25:57 +00:00
tools/i18n
.editorconfig
.gitignore
.jshintrc
.travis.yml
Gruntfile.js
jsdoc.conf.json
package.json
phpunit.xml.dist
webpack.config.dev.js
webpack.config.prod.js
wp-cli.yml
wp-config-sample.php
wp-tests-config-sample.php Database: Restore numbered placeholders in `wpdb::prepare()`. 2017-10-31 11:59:43 +00:00