diff --git a/inc/ui/class-template-previewer.php b/inc/ui/class-template-previewer.php index 2bb93e6..71bd267 100644 --- a/inc/ui/class-template-previewer.php +++ b/inc/ui/class-template-previewer.php @@ -375,7 +375,7 @@ class Template_Previewer { // Fix to issue on wp_get_attachment_url() inside core. // @todo report it. - $initial_pagenow = $GLOBALS['pagenow']; + $initial_pagenow = $GLOBALS['pagenow'] ?? ''; $GLOBALS['pagenow'] = ''; $default_settings = array(