mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Previously, when getting posts from the API with `sticky=true`, if there were no sticky posts set, the query would return all posts as if the `sticky` argument was not set. In this situation, the query should return an empty array instead. A `sticky=true` query that should return an empty array (in the previous situation, or with `include` and no intersecting post IDs) was also broken in that it would query the post with ID 1. Finally, this commit significantly improves test coverage for the `sticky` filter argument, including direct testing of the `WHERE` clauses generated by `WP_Query`. Props ryelle. Fixes #39947. git-svn-id: https://develop.svn.wordpress.org/trunk@40122 602fd350-edb4-49c9-b593-d223f7449a82 |
||
|---|---|---|
| .. | ||
| rest-attachments-controller.php | ||
| rest-categories-controller.php | ||
| rest-comments-controller.php | ||
| rest-controller.php | ||
| rest-pages-controller.php | ||
| rest-post-meta-fields.php | ||
| rest-post-statuses-controller.php | ||
| rest-post-types-controller.php | ||
| rest-posts-controller.php | ||
| rest-request-validation.php | ||
| rest-request.php | ||
| rest-revisions-controller.php | ||
| rest-schema-sanitization.php | ||
| rest-schema-setup.php | ||
| rest-schema-validation.php | ||
| rest-server.php | ||
| rest-settings-controller.php | ||
| rest-tags-controller.php | ||
| rest-taxonomies-controller.php | ||
| rest-test-controller.php | ||
| rest-users-controller.php | ||