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

url escaping issue solved for #57042 #3590

Closed
wants to merge 1 commit into from

Conversation

monzuralam
Copy link

Trac ticket: 57042


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@github-actions
Copy link

github-actions bot commented Nov 9, 2022

Hi @monzuralam! 👋

Thank you for your contribution to WordPress! 💖

It looks like this is your first pull request to wordpress-develop. Here are a few things to be aware of that may help you out!

No one monitors this repository for new pull requests. Pull requests must be attached to a Trac ticket to be considered for inclusion in WordPress Core. To attach a pull request to a Trac ticket, please include the ticket's full URL in your pull request description.

Pull requests are never merged on GitHub. The WordPress codebase continues to be managed through the SVN repository that this GitHub repository mirrors. Please feel free to open pull requests to work on any contribution you are making.

More information about how GitHub pull requests can be used to contribute to WordPress can be found in this blog post.

Please include automated tests. Including tests in your pull request is one way to help your patch be considered faster. To learn about WordPress' test suites, visit the Automated Testing page in the handbook.

If you have not had a chance, please review the Contribute with Code page in the WordPress Core Handbook.

The Developer Hub also documents the various coding standards that are followed:

Thank you,
The WordPress Project

@@ -516,7 +516,7 @@
printf(
/* translators: 1: Learn WordPress link. */
__( 'Explore <a href="%s">learn.wordpress.org</a> for tutorial videos, online workshops, courses, and lesson plans for Meetup organizers, including new features in WordPress.' ),
'https://learn.wordpress.org/'
esc_url( __( 'https://learn.wordpress.org/' ) )
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any reason to make this link translatable?

Choose a reason for hiding this comment

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

Thanks @audrasjb for the review.
I think it shouldn't be translatable. So don't think the __ should be used here.

Copy link
Author

@monzuralam monzuralam Nov 9, 2022

Choose a reason for hiding this comment

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

I thought '__' should be used because it was used here in the example of about.php

esc_url( __( 'https://wordpress.org/themes/tags/full-site-editing/' ) )

Copy link
Contributor

@desrosj desrosj Nov 9, 2022

Choose a reason for hiding this comment

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

To my knowledge, the Learn WordPress site is only available in the the default, en_US locale. I agree that there's no need to mark this string for translation (which eliminates the need to use esc_url() entirely) at this time.

Copy link
Contributor

@costdev costdev Nov 10, 2022

Choose a reason for hiding this comment

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

https://learn.wordpress.org/?locale=es_ES is available, for example, and might be why this is translatable. Would defer to @audrasjb, @SergeyBiryukov and others on this though.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah! Thanks for finding that, I was trying es.learn.wordpress.org. The ticket attached to this PR has been closed, though, as the original intent was determined a wontfix. A new ticket to translate this URL (perhaps after confirmation from someone more familiar with translations) would be great!

@desrosj
Copy link
Contributor

desrosj commented Nov 11, 2022

Closing as the Trac ticket this was meant to address has been closed as wontfix.

@desrosj desrosj closed this Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants