-
Notifications
You must be signed in to change notification settings - Fork 96
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
Fix embed widget documentation and validation #702
Conversation
@@ -32,7 +32,7 @@ | |||
"scripts": { | |||
"compat": "\"vendor/bin/phpcs\" --standard=phpcs-compat-ruleset.xml .", | |||
"phpcs": "\"vendor/bin/phpcs\"", | |||
"phpcs-i18n": "\"vendor/bin/phpcs\" --sniffs=WordPress.WP.I18n ./lib/", | |||
"phpcs-i18n": "\"vendor/bin/phpcs\" --sniffs=WordPress.WP.I18n", |
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.
Missing files from the translation check
} | ||
|
||
if ( ! empty( $new_instance['redirect_to'] ) ) { |
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.
Redirect URL now uses the same validation as the settings page.
</p> | ||
|
||
<?php if ( $custom_css ) : ?> |
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.
Do not show the field if empty to avoid new data to be saved (this option is deprecated).
d3bdaf6
to
24a6138
Compare
</p> | ||
<?php endif; ?> | ||
|
||
<?php if ( $custom_js ) : ?> |
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.
Do not show the field if empty to avoid new data to be saved (this option is deprecated).
f24c5b7
to
1316c23
Compare
1316c23
to
4551644
Compare
Changes
Note to reviewers: changes to the PO, MO, and POT files are automated. If the text in the main template file being changed,
templates/a0-widget-setup-form.php
, looks good, then these will be fine as well. Marking this as "small" as it's mostly verbiage changes.Testing
Checklist