Skip to content
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

get_current_page was called incorrectly #203

Open
andrejarh opened this issue Oct 27, 2021 · 0 comments
Open

get_current_page was called incorrectly #203

andrejarh opened this issue Oct 27, 2021 · 0 comments

Comments

@andrejarh
Copy link

Upon activating a custom theme with the merlin, I noticed a php notice:

Notice : get_current_page was called incorrectly .
Current page retrieval should be called on or after the current_screen hook.
Please see Debugging in WordPress for more information.

If I comment out the do_action( 'admin_head' ) in class-merlin.php protected function header(), then the notice is gone. However I do not fully understand the consequences of commenting out this line, so I am not sure if this is a good idea.

@azamatx azamatx mentioned this issue Dec 20, 2022
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

No branches or pull requests

1 participant