alleyinteractive / alleyinteractive/es-wp-query
Search query var gets re-slashed in rebooted query
Đang mở
bug
- Ngôn ngữ chính
- PHP
- Star
- 125
- Fork
- 28
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
`WP_Query` calls `stripslashes()` on the `s` query var when parsing searches: https://github.com/WordPress/wordpress-develop/blob/eb06a59f536692e9499b89abd3f156ff56d3075e/src/wp-includes/class-wp-query.php#L1338-L1341
`ES_WP_Query` mimics this behavior in `\ES_WP_Query_Wrapper::parse_search()`, but `\ES_WP_Query_Shoehorn::reboot_query_vars()` puts the original `s` back into the query, causing the slashed string to be returned in `get_search_query()` and functions relying on it like `wp_get_document_title()`.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.