Skip to content

Fix: require WP_Screen if missing#13

Closed
jonwaldstein wants to merge 2 commits intomainfrom
fix/current-screen-error
Closed

Fix: require WP_Screen if missing#13
jonwaldstein wants to merge 2 commits intomainfrom
fix/current-screen-error

Conversation

@jonwaldstein
Copy link

@jonwaldstein jonwaldstein commented Mar 13, 2025

Resolves: #12

This adds the missing WP_Screen class when not found.

@jonwaldstein
Copy link
Author

jonwaldstein commented Mar 13, 2025

Turns out this is not necessary if you are using this package within the admin_init hook

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.

Fatal Error: Argument #1 ($class) must be a valid class name, WP_Screen given

1 participant