-
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
Latest posts: make more link consistent between frontend and editor #51190
Conversation
…nsistent ensuring that the ellipsis and "Read more" appear in the editor and frontend, and that they are also translatable.
Size Change: +47 B (0%) Total Size: 1.39 MB
ℹ️ View Unchanged
|
</a> | ||
{ createInterpolateElement( | ||
/* translators: excerpt truncation character, default … */ | ||
__( ' … <a>Read more</a>' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this for i18n. Locales should be able to determine where the ellipsis is, if at all.
It's not the subject of the bug report however and can be rolled back, and the backend changed to match.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…nsistent ensuring that the ellipsis and "Read more" appear in the editor and frontend, and that they are also translatable. (WordPress#51190)
Fixes #50492
What?
This commit makes rendering Read more on latest post excerpts more consistent ensuring that the ellipsis and "Read more" appear in the editor and frontend, and that they are also translatable.
Why?
With any block theme active, the Latest Posts block displays an unlinked
[...]
. In the editor, however, a "Read More" link is rendered.How?
On the frontend, via the excerpt_more hook.
If the block's attributes indicate that excerpts are activated it will render
"… Read more"
, with the ellipses contained within the translate function.Testing Instructions
Editor
Frontend