wordpress-develop/tests/qunit/fixtures
Tonya Mork dc3204ec1d REST API: Fixes /wp/v2/pattern-directory/patterns endpoint response for slug parameter.
[53218] introduced a bug of a wrong response from the `wp/v2/pattern-directory/patterns` endpoint with a `slug` parameter. As the response is cached, it can result in an incorrect list of available patterns supported by the current theme.

This commit resolves by:

* Limiting the `slug` to an `array` in the query parameters.
* When set, parsing and sorting the slug(s) and then serializing the sorted query args as part of the hashed transient keys.

Props antonvlasenko, timothyblynjacobs, spacedmonkey, costdev, hellofromTonya.

Follow-up to [53218], [53152], [51208].
Fixes #55617.

git-svn-id: https://develop.svn.wordpress.org/trunk@53333 602fd350-edb4-49c9-b593-d223f7449a82
2022-05-02 13:58:48 +00:00
..
common.js I18N: Use wp.i18n for translatable strings in wp-admin/js/dashboard.js. 2020-10-14 21:11:09 +00:00
customize-header.js Add PHP and JS unit tests for custom headers. 2014-03-29 10:05:22 +00:00
customize-menus.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
customize-settings.js Customize: Add changeset locking in Customizer to prevent users from overriding each other's changes. 2017-10-12 04:00:15 +00:00
customize-widgets.js Customize: Improve i18n for strings in hidden widget area notices. 2017-03-24 22:02:02 +00:00
js-widgets-endpoint.js REST API: JS client - QUnit tests for custom namespace route discovery. 2017-02-24 18:39:39 +00:00
updates.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
wp-api-generated.js REST API: Fixes /wp/v2/pattern-directory/patterns endpoint response for slug parameter. 2022-05-02 13:58:48 +00:00
wp-api.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00