mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
[37262] changed a check in `redirect_canonical()` so that it checked categories in the object cache rather than querying the database. However, the check was based on the identity of `WP_Term` objects, which in certain cases can be augmented by the main WP query routine, causing failures of the `in_array()` check. This caused unnecessary redirects for URLs where `is_single()` is true, but the URL is different from the post permalink, such as the `embed` endpoint. `has_term()` also checks the cache, but does not sufer from this bug. Props cmillerdev. Fixes #36602. git-svn-id: https://develop.svn.wordpress.org/trunk@38216 602fd350-edb4-49c9-b593-d223f7449a82 |
||
|---|---|---|
| src | ||
| tests | ||
| tools/i18n | ||
| .editorconfig | ||
| .gitignore | ||
| .jshintrc | ||
| .travis.yml | ||
| Gruntfile.js | ||
| package.json | ||
| phpunit.xml.dist | ||
| wp-cli.yml | ||
| wp-config-sample.php | ||
| wp-tests-config-sample.php | ||