Fix warning 'warning:

Undefined global variable '
This commit is contained in:
David Stone
2025-01-30 00:46:04 -07:00
parent 6fcf6babc3
commit 483546db58

View File

@ -375,7 +375,7 @@ class Template_Previewer {
// Fix to issue on wp_get_attachment_url() inside core. // Fix to issue on wp_get_attachment_url() inside core.
// @todo report it. // @todo report it.
$initial_pagenow = $GLOBALS['pagenow']; $initial_pagenow = $GLOBALS['pagenow'] ?? '';
$GLOBALS['pagenow'] = ''; $GLOBALS['pagenow'] = '';
$default_settings = array( $default_settings = array(