Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excerpt length fix for admin-ajax requests. #5217

Closed
wants to merge 1 commit into from

Conversation

dcooney
Copy link

@dcooney dcooney commented Sep 14, 2023

Trac Ticket: 59350

This PR adds an additional check for wp_doing_ajax() to allow custom excerpt_length hooks in themes and plugins to run on the frontend when being called via admin-ajax.

The code in the following file was introduced around 6.3 and appears to be a global hook that doesn't consider admin-ajax frontend requests.
https://github.com/WordPress/WordPress/blob/master/wp-includes/blocks/post-excerpt.php#L86-L95

@dcooney dcooney changed the title Excerpt length Excerpt length fix for admin-ajax requests. Sep 14, 2023
@swissspidy
Copy link
Member

This change needs to happen in Gutenberg. See WordPress/gutenberg#55400

@swissspidy swissspidy closed this Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants