Skip to content

Conversation

@Rajinsharwar
Copy link
Contributor

@Rajinsharwar Rajinsharwar commented Aug 11, 2023

What?

We are checking if it's an Ajax call for the post excerpt request.

Why?

This is to ensure the correct length of the excerpt is returned.Fixes #53570

How?

We are using the DOING_AJAX to check if it's an AJAX request.

Testing Instructions

Please check the testing instructions here: #53570

Testing Instructions for Keyboard

N/A

Screenshots or screencast

N/A

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Aug 11, 2023
@github-actions
Copy link

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @Rajinsharwar! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

@swissspidy swissspidy added [Block] Post Excerpt Affects the Post Excerpt Block [Type] Bug An existing feature does not function as intended labels Aug 11, 2023
@mikachan mikachan added the Backport to WP 6.9 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Oct 13, 2023
@SiobhyB
Copy link
Contributor

SiobhyB commented Oct 19, 2023

@Rajinsharwar, I see from the original issue that a new PR has been opened at #55400. I'll therefore go ahead to close this one, but let me know if you think it should remain open. Thanks!

@SiobhyB SiobhyB closed this Oct 19, 2023
@SiobhyB SiobhyB removed the Backport to WP 6.9 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Oct 19, 2023
@Rajinsharwar Rajinsharwar deleted the 53570 branch November 4, 2023 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Post Excerpt Affects the Post Excerpt Block First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

the_excerpt() function return excerpt with different length in page load and ajax request

4 participants