Skip to content

Conversation

@prab18hat
Copy link
Contributor

This PR fixes issue #3318: Bad string injection of plugin update message.

The update message for WPGraphQL in the WordPress admin was previously injected in a way that could cause duplicate or broken messages (e.g., the word "Updated" appearing multiple times).
The fix removes forced paragraph wrapping and ensures the update message is injected cleanly, without duplication or broken HTML.

Does this close any currently open issues?
Closes #3318

Any other comments?
I tested by lowering the plugin version in [wp-graphql.php] to simulate an update, copying the plugin to the WordPress plugins directory, and viewing the update message in the WordPress admin Plugins list.
The update message now displays correctly, with no duplication or broken formatting.

Please see the attached screenshot for proof of the fix

plugin fix

@prab18hat
Copy link
Contributor Author

Could you please check this commit ?

@jasonbahl jasonbahl changed the title Fix: Prevent bad string injection in plugin update message (#3318) fix: Prevent bad string injection in plugin update message (#3318) Sep 25, 2025
@jasonbahl jasonbahl merged commit 61ab7e0 into wp-graphql:develop Sep 26, 2025
37 of 38 checks passed
jasonbahl pushed a commit to jasonbahl/wp-graphql that referenced this pull request Sep 26, 2025
PatelUtkarsh pushed a commit to PatelUtkarsh/wp-graphql that referenced this pull request Oct 1, 2025
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.

Bad string injection of plugin update message

2 participants