Go to file
Boone Gorges a1389117b2 Allow a null `id` to do a `name` lookup in `wp_set_current_user()`.
Previously, the `name` fallback was failing in the case where the current user
was 0, due to a loose comparison between 0 (the current user) and `null` (the
value that is used to trigger the `name` fallback).

Props bobbingwide.
Fixes #20845.

git-svn-id: https://develop.svn.wordpress.org/trunk@34947 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-08 17:28:34 +00:00
src Allow a null `id` to do a `name` lookup in `wp_set_current_user()`. 2015-10-08 17:28:34 +00:00
tests Allow a null `id` to do a `name` lookup in `wp_set_current_user()`. 2015-10-08 17:28:34 +00:00
tools/i18n i18n tools: Use https for `msgid-bugs-address` URLs. 2015-07-27 19:37:13 +00:00
.editorconfig Use HTTPS URLs for codex.wordpress.org. 2015-04-12 21:28:58 +00:00
.gitignore Ignore `.DS_Store` files. 2015-03-13 18:11:33 +00:00
.jshintrc
.travis.yml Add PHP Nightlies to the test suite 2015-10-02 16:50:53 +00:00
Gruntfile.js Build: Fix a filename typo in [34903]. 2015-10-07 12:04:39 +00:00
package.json Build Tools: upgrade `grunt-browserify` to `~4.0.0` and remove the `watch` task for `browserify`, which has its own internal watcher. Run `npm install` to update. 2015-10-07 00:00:00 +00:00
phpunit.xml.dist Tests: Exclude the `oembed/headers.php` test file, which was marked as PHP >= 5.3.0 in [34904]. 2015-10-07 12:00:34 +00:00
wp-cli.yml
wp-config-sample.php Lightly clean up and improve inline documentation in wp-config-sample.php. 2015-05-10 00:05:30 +00:00
wp-tests-config-sample.php