Skip to content

Conversation

@jasonbahl
Copy link
Collaborator

What does this implement/fix? Explain your changes.

This updates the WPGraphQL/Admin/AdminNotice to be a Singleton, and introduces the get_graphql_admin_notices() function.

Does this close any currently open issues?

no

- refactor WPGraphQL\AdminNotices to be a singleton
- instantiate AdminNotices the singleton
@jasonbahl jasonbahl added the type: enhancement Improvements to existing functionality label Sep 9, 2024
@jasonbahl jasonbahl self-assigned this Sep 9, 2024
@qlty-cloud-legacy
Copy link

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

View more on Code Climate.

@jasonbahl jasonbahl changed the title Feat/make admin notices a singleton feat: introduce get_graphql_admin_notices and convert AdminNotices class to a singleton Sep 9, 2024
@coveralls
Copy link

Coverage Status

coverage: 83.992% (-0.2%) from 84.176%
when pulling 4453a6b on jasonbahl:feat/make-admin-notices-a-singleton
into d3542ef on wp-graphql:develop.

Copy link
Member

@josephfusco josephfusco left a comment

Choose a reason for hiding this comment

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

CleanShot 2024-09-12 at 13 32 33@2x

I was able to confirm this is working using get_graphql_admin_notices. 🎉

@jasonbahl jasonbahl merged commit 4453a6b into wp-graphql:develop Sep 12, 2024
@jasonbahl jasonbahl mentioned this pull request Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement Improvements to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants