-
Notifications
You must be signed in to change notification settings - Fork 896
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
Make sure self::$backfill is instantiated. #9285
Conversation
Hi Jory, It seems that you are running this functionality on a timing that is not very self-explanatory. As we are registering/initializing/bootstrapping our plugin here: The The problem would be solved if the filter that triggers https://github.com/JoryHogeveen/view-admin-as/blob/8b94155b042aa4feaaae8b5c84eb3e807fdb867d/includes/class-compat.php#L255 would be ran after the |
Hi @moorscode I already patched a quick fix for this error but it's not very neat and shouldn't be done by my plugin: I'm simply instantiating What I'm actually trying to achieve with this is fetching the WPSEO capabilities on the frontend since these are only available on the backend. However, related to this PR. |
To continue on this, I think its even better to create an API function/method for this. |
I agree that the lower-level problem that you are trying to solve should be the focus of changes in this repository. Could you create an issue which describes the need that you have and what API you suggest to use? |
@moorscode |
Closing this PR in favor of the new issue. |
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
Test instructions
This PR can be tested by following these steps:
Quality assurance
Fixes #