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

Add missing translate function #80

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

IanDelMar
Copy link

This PR:

  • Adds a missing translation function.
  • Replaces wp_kses_post with wp_kses and an array of allowed HTML (an <a> tag and its href attribute) to ensure translators cannot add additional HTML.
  • Replaces esc_attr with esc_url to properly escape the URL, as esc_url is the appropriate function for this purpose.

Question:
Does this repository adhere to a specific coding standard? The code contains a mix of tabs and spaces for indentation, sometimes even on the same line. I would have addressed this for the lines affected by this fix, but I could not find any information about the guidelines, if there are any.

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.

1 participant