Skip to content

Amendment to #2349 to add "selected" attribute to allowed HTML.#2351

Merged
jasonbahl merged 3 commits intowp-graphql:developfrom
eavonius:develop
Apr 22, 2022
Merged

Amendment to #2349 to add "selected" attribute to allowed HTML.#2351
jasonbahl merged 3 commits intowp-graphql:developfrom
eavonius:develop

Conversation

@eavonius
Copy link
Copy Markdown
Contributor

What does this implement/fix? Explain your changes.

The get_allowed_wp_kses_html function was missing the "selected" attribute which stripped the HTML when trying to save a select field in custom wpgraphql settings. This should have been included with #2349 but I didn't realize it wasn't saving until now. Oops =/.

Does this close any currently open issues?

Any relevant logs, error output, GraphiQL screenshots, etc?

(If it’s long, please paste to https://ghostbin.com/ and insert the link here.)

Any other comments?

Where has this been tested?

Operating System: Apache2 PHP 7.4 on Docker

WordPress Version: 5.9

@qlty-cloud-legacy
Copy link
Copy Markdown

Code Climate has analyzed commit e8aeb7b and detected 0 issues on this pull request.

View more on Code Climate.

@jasonbahl jasonbahl merged commit 7290bb9 into wp-graphql:develop Apr 22, 2022
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 22, 2022

Coverage Status

Coverage remained the same at 79.26% when pulling e8aeb7b on eavonius:develop into d26e321 on wp-graphql:develop.

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