Go to file
Dominik Schilling (ocean90) ff5180e2a5 REST API JavaScript Client: Support an empty string for `nonce` to disable sending the X-WP-Nonce header.
Passing a `nonce` argument with an empty string to `wp.api.init()` now does no longer fall back to `wpApiSettings.nonce`. This makes it possible to stop sending nonce headers, for example to a read-only endpoint on another site in a multisite install.

Props adamsilverstein, FPCSJames, ocean90, swissspidy.
Fixes #42948, #43266.

git-svn-id: https://develop.svn.wordpress.org/trunk@42852 602fd350-edb4-49c9-b593-d223f7449a82
2018-03-18 17:20:47 +00:00
src REST API JavaScript Client: Support an empty string for `nonce` to disable sending the X-WP-Nonce header. 2018-03-18 17:20:47 +00:00
tests Pinking shears. 2018-03-18 14:22:09 +00:00
tools/i18n Remove the `svn:executable` property from files that don't need it. 2017-11-17 02:57:27 +00:00
.editorconfig Build: Switch `package.json` to using tabs for indents. 2018-01-16 03:54:10 +00:00
.gitignore Build/Test Tools: Remove `vendor` file name entry from `.gitignore`. 2018-02-25 11:29:25 +00:00
.jshintrc General: Remove `.jshintrc` and `*.json` from the 2-space-indent `.editorconfig` group. 2017-10-12 01:57:45 +00:00
.travis.yml BUILD/TEST TOOLS: Report Travis test results to make/hosting PHPUnit test results 2018-01-16 20:28:42 +00:00
Gruntfile.js Build/Test Tools: Add `watch:phpunit` task. 2018-02-27 00:31:33 +00:00
jsdoc.conf.json Docs: Improve wp-admin JSDoc structural data globally. 2017-12-15 13:41:56 +00:00
package.json Build Tools: Update SPDX License in `package.json` to adhere to SPDX v3.0 specification. 2018-02-01 16:38:48 +00:00
phpcs.xml.dist Coding Standards: Add the `phpcs.xml.dist` file. 2017-12-01 03:40:04 +00:00
phpunit.xml.dist Build/Test Tools: Allow code coverage reports to be generated. 2018-02-07 22:20:25 +00:00
webpack.config.dev.js Build: Webpack instead of Browserify as JavaScript bundler. 2017-10-04 21:00:15 +00:00
webpack.config.prod.js Build: Webpack instead of Browserify as JavaScript bundler. 2017-10-04 21:00:15 +00:00
wp-cli.yml Remove debug mode from WP-CLI by default, as it now outputs too much debugging information to be of use during normal development. 2015-11-28 18:36:06 +00:00
wp-config-sample.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wp-tests-config-sample.php Code is Poetry. 2017-11-30 23:09:33 +00:00