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
Block Bindings: Update source registration syntax and remove APIs that should be private #58205
Changes from all commits
224e859
49bca3f
99c5488
1527b81
3fda653
de089f6
c9a245e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,9 @@ | |
}; | ||
wp_block_bindings_register_source( | ||
'pattern_attributes', | ||
__( 'Pattern Attributes', 'gutenberg' ), | ||
$pattern_source_callback | ||
array( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There should be no textdomain used for translations expected to land in core. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! I removed it for both the |
||
'label' => __( 'Pattern Attributes' ), | ||
'apply' => $pattern_source_callback, | ||
) | ||
); | ||
} |
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.
If you are backporting this file, make sure that multilines comments are with /* */
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.
Thanks Carlos! The backport is here btw WordPress/wordpress-develop#5888 if you ever want to have a look.