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

Fix typo for the allowed tags global. #203

Merged
merged 1 commit into from
Aug 3, 2021
Merged

Fix typo for the allowed tags global. #203

merged 1 commit into from
Aug 3, 2021

Conversation

theskinnyghost
Copy link
Member

Description of the Change

Fixed a typo in global keyword $allowedtags.

Alternate Designs

n/a

Benefits

Content in admin notices will be escaped properly.

Possible Drawbacks

None.

Verification Process

I was type-hinting the apply_filters( 'wp_kses_allowed_html', $context, 'explicit' ); filter to accept string|array and PHP did throw a Fatal Error because of this typo.
Fixing the typo also fixed this error.
See https://developer.wordpress.org/reference/functions/wp_kses_allowed_html/#source

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Applicable Issues

n/a

Changelog Entry

Fix: Fix typo for the $allowedtags global used in conjunction with wp_kses

@Rahmon Rahmon merged commit 9f60270 into 10up:develop Aug 3, 2021
@theskinnyghost theskinnyghost deleted the fix/php-fatal-error branch December 29, 2021 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants