-
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
Block Bindings: Change core/pattern-attributes
source for core/pattern-overrides
#58434
Block Bindings: Change core/pattern-attributes
source for core/pattern-overrides
#58434
Conversation
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress. If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged. If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack. Thank you! ❤️ View changed files❔ lib/compat/wordpress-6.5/block-bindings/sources/pattern.php ❔ lib/compat/wordpress-6.5/block-bindings/sources/post-meta.php |
array( | ||
'label' => __( 'Pattern Attributes' ), | ||
'label' => __( 'Pattern Overrides' ), |
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.
See the related comment WordPress/wordpress-develop#5888 (comment) in wordpress-develop about using _x
.
'label' => __( 'Pattern Overrides' ), | |
'label' => _x( 'Pattern Overrides', 'block binding source' ), |
The same could get incorporated in other places where we use labels for this label and Post Meta
.
Size Change: +120 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
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.
Thank you for taking care of it.
By the way, we should apply the same changes to WordPress/wordpress-develop#5888.
array( | ||
'label' => __( 'Pattern Attributes' ), | ||
'label' => _x( 'Pattern Overrides', 'Label for the block bindings source used for partially synced overrides' ), |
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.
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.
Oh, okay! I'll change that 🙂
Flaky tests detected in f3f8f78. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7711165451
|
…tern-overrides` (#58434) * Change `pattern-attributes` for `pattern-overrides` * Use `_x()` function for translations * Add check in post meta source * Update pattern description * Update `_x( )` context to be more concise
I just cherry-picked this PR to the release/17.6 branch to get it included in the next release: 7936454 |
…tern-overrides` (#58434) * Change `pattern-attributes` for `pattern-overrides` * Use `_x()` function for translations * Add check in post meta source * Update pattern description * Update `_x( )` context to be more concise
What?
I'm renaming the
core/pattern-attributes
source forcore/pattern-overrides
as discussed here.I also took the opportunity to add a small check to the post meta source that was included in the WordPress backport: link and it was lacking in Gutenberg.
Why?
It seems to be more aligned with the current naming.
How?
Just search and replace.
Testing Instructions
Test pattern syncing overrides: