Pilot-in / PiloPress

The most advanced WordPress Page Builder using Advanced Custom Fields & TailwindCSS
https://www.pilopress.com
63 stars 11 forks source link

Default content - notice on multisite #200

Closed ghost closed 2 years ago

ghost commented 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