Skip to content

Set default excerpt limit#1244

Open
girishpanchal30 wants to merge 2 commits into
developmentfrom
bugfix/pro/932
Open

Set default excerpt limit#1244
girishpanchal30 wants to merge 2 commits into
developmentfrom
bugfix/pro/932

Conversation

@girishpanchal30
Copy link
Copy Markdown
Contributor

Summary

Set default excerpt limit to 400 characters.

Check before Pull Request is ready:

Closes https://github.com/Codeinwp/feedzy-rss-feeds-pro/issues/932

@girishpanchal30 girishpanchal30 requested a review from Copilot May 27, 2026 12:17
@girishpanchal30 girishpanchal30 added the pr-checklist-skip Allow this Pull Request to skip checklist. label May 27, 2026
@pirate-bot pirate-bot added the pr-checklist-complete The Pull Request checklist is complete. (automatic label) label May 27, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR sets a default excerpt/description character limit of 400 for the Feedzy Gutenberg block, so newly inserted blocks truncate descriptions unless the user overrides the setting.

Changes:

  • Set summarylength default to 400 in the block’s JS attribute schema.
  • Set summarylength default to 400 in the PHP register_block_type() attribute schema.
  • Updated the inspector control to show 400 when summarylength is not present (but see comment re: 0 handling).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
js/FeedzyBlock/inspector.js Displays the description length setting in the block inspector UI.
js/FeedzyBlock/attributes.js Adds a default value for the summarylength block attribute.
includes/gutenberg/feedzy-rss-feeds-gutenberg-block.php Adds a server-side default for the summarylength block attribute.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread js/FeedzyBlock/inspector.js Outdated
@pirate-bot
Copy link
Copy Markdown
Contributor

pirate-bot commented May 27, 2026

Plugin build for f743dea is ready 🛎️!

Note

You can preview the changes in the Playground

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-checklist-complete The Pull Request checklist is complete. (automatic label) pr-checklist-skip Allow this Pull Request to skip checklist.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants