MerlinWP icon indicating copy to clipboard operation
MerlinWP copied to clipboard

get_current_page was called incorrectly

Open andrejarh opened this issue 4 years ago • 0 comments

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.

andrejarh avatar Oct 27 '21 09:10 andrejarh