#59504 closed defect (bug) (duplicate)
'excerpt_length' filter in hijacked for ajax requests
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 6.3.2 |
| Component: | Editor | Keywords: | has-patch |
| Focuses: | Cc: |
Description
wp-include/blocks/post-excerpt.php:86
The file hooks 'excerpt_length' with a value of 100 and priority of PHP_INT_MAX for admin and rest requests. As a result, 'excerpt_length' is set to 100 for ajax requests (is_admin() is true for these)
Presumably this is incorrect. If a post is being rendered via ajax, it's excerpt length shouldn't be hijacked by block logic.
Change History (4)
This ticket was mentioned in PR #5354 on WordPress/wordpress-develop by perrelet.
2 years ago
#1
- Keywords has-patch added
#2
@
2 years ago
- Component changed from General to Editor
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
Hi there
Thanks for your ticket & PR. We‘re already tracking this issue in #59043
2 years ago
#4
Closed as duplicate of https://github.com/WordPress/wordpress-develop/pull/5217
Note: See
TracTickets for help on using
tickets.
wp-include/blocks/post-excerpt.php:86hooks
excerpt_lengthwith a value of100and priority ofPHP_INT_MAXfor admin and rest requests. As a result,excerpt_lengthis set to100for ajax requests (is_admin()istruefor these)Presumably this is incorrect. If a post is being rendered via ajax, it's excerpt length shouldn't be hijacked by block logic.
Trac ticket: (https://core.trac.wordpress.org/ticket/59504)