Skip to content
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

Use one function for escaping and retrieving the translation. #1225

Closed
wants to merge 1 commit into from

Conversation

dimadin
Copy link

@dimadin dimadin commented May 4, 2021

@@ -208,7 +208,7 @@ private function do_overwrite() {
return false;
}

echo '<h2 class="update-from-upload-heading">' . esc_html( __( 'This plugin is already installed.' ) ) . '</h2>';
echo '<h2 class="update-from-upload-heading">' . esc_html__( 'This plugin is already installed.' ) . '</h2>';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't seem like the escaping is required at all here. The same applies to lines 224 and 225 which you have kept unchanged.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I did change lines 224 and 225 but in #1189, which landed in core. I forgot to rebase, sorry.

Should we keep escaping for now and then remove it in all places, or should I remove it from this PR?

@dream-encode
Copy link
Contributor

Merged into core in https://core.trac.wordpress.org/changeset/50931.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants