Closed ghost closed 2 years ago
https://github.com/Pilot-in/PiloPress/blob/6df14f874c6fd5d115c1704a19420fc6ee0931eb/includes/classes/admin/patterns/class-default-content.php#L46
Need to check if $current_screen returns something first otherwise it generates a notice: PHP Notice: Trying to get property 'base' of non-object in \wp-content\plugins\pilopress\includes\classes\admin\patterns\class-default-content.php on line 47
$current_screen
PHP Notice: Trying to get property 'base' of non-object in \wp-content\plugins\pilopress\includes\classes\admin\patterns\class-default-content.php on line 47
https://github.com/Pilot-in/PiloPress/blob/6df14f874c6fd5d115c1704a19420fc6ee0931eb/includes/classes/admin/patterns/class-default-content.php#L46
Need to check if
$current_screen
returns something first otherwise it generates a notice:PHP Notice: Trying to get property 'base' of non-object in \wp-content\plugins\pilopress\includes\classes\admin\patterns\class-default-content.php on line 47