-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 limit is overruled #48403
Comments
Came here to report this as well. I believe it's this line:
The condition always evaluates to true because the constant, REST_REQUEST is quoted. And I'm not sure, but if the purpose of this was to determine whether the the editor is active, I think the logic should be AND not OR. |
REST_REQUEST constant was mistakenly quoted, which caused the condition to always evaluate to true. And the conditional logic should be AND, not OR.
Came here to report this as well (and thanks @jeffreyvr for the very detailed test case). I am able to reproduce this under additional conditions: Settings at /wp-admin/options-reading.php are set to "Your homepage displays": "your latest posts" ; used a couple different classic themes (maxwell, ernesto) and in both, the excerpt_filter is ignored even when the priority is manually changed to 999. |
#48654 fixes this particular issue. |
thanks; closing. |
Description
Since Gutenberg 15.2.0, the set excerpt length limit is not always respected.
When you have a Homepage set (Settings -> Reading), and have a custom query on
front-page.php
, it does no longer limit the length.This bare bones theme reproduces the issue:
https://github.com/jeffreyvr/gutenberg-excerpt-limit-bug
Step-by-step reproduction instructions
Create a page called 'Home' and setting it as the 'Homepage' in Settings -> Reading.
Create a posts with text exceeding the excerpt limit. Example:
front-page.php
should contain a custom query to display recent posts.functions.php
limit the excerpt length:Screenshots, screen recording, code snippet
Screen.Recording.2023-02-24.at.11.31.36.mov
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: