Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion includes/gutenberg/feedzy-rss-feeds-gutenberg-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ public function feedzy_register_block_type() {
'default' => true,
),
'summarylength' => array(
'type' => 'number',
'type' => 'number',
'default' => 400,
),
'keywords_title' => array(
'type' => 'string',
Expand Down
1 change: 1 addition & 0 deletions js/FeedzyBlock/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const attributes = {
},
summarylength: {
type: 'number',
default: 400,
},
keywords_title: {
type: 'string',
Expand Down
2 changes: 1 addition & 1 deletion js/FeedzyBlock/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class Inspector extends Component {
'feedzy-rss-feeds'
)}
type="number"
value={this.props.attributes.summarylength}
value={this.props.attributes.summarylength ?? 400}
onChange={this.props.edit.onSummaryLength}
className="feedzy-summary-length"
min={0}
Expand Down
Loading