-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Allow using a custom domainpath for viewscripts #40136
Conversation
6333db8
to
f1df51b
Compare
Rebased the PR and resolved conflicts now that #36176 has been merged. 👍 |
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.
Code looks great 👍
We should improve the documentation. Do we have unit tests covering this new API?
lib/compat/wordpress-6.0/blocks.php
Outdated
@@ -198,8 +198,9 @@ function wp_enqueue_block_view_script( $block_name, $args ) { | |||
'ver' => false, | |||
'in_footer' => false, | |||
|
|||
// Additional arg to allow translations for the script's textdomain. | |||
// Additional args to allow translations for the script's textdomain. |
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.
It feels like we should update the function’s documentation to make it more clear what every param should look like.
f1df51b
to
dbc0ab2
Compare
What?
Allow using a custom
domainpath
for translations in view-scripts.Why?
See discussion in #36176 (comment)
How?
Adds a new
domainpath
arg. Thedomainpath
name was chooses for consistency with the Core patches on trac.