woocommerce / woosidebars

Replace registered sidebars in your WordPress themes using different conditions such as a specific page, a category or even an individual blog post.
https://wordpress.org/plugins/woosidebars/
51 stars 42 forks source link

Notice on class-woo-sidebars.php on line 743 #61

Closed webdados closed 6 years ago

webdados commented 6 years ago

( ! ) Notice: Trying to get property of non-object in /Users/marcoalmeida/Documents/Websites/www.wordpress.dev/wp-content/plugins/woosidebars/classes/class-woo-sidebars.php on line 743

I got this just after setting up the Flatsome theme.

jeffikus commented 6 years ago

On what screen exactly does this occur? I know the theme, does this happen immediately when you click the Activate button to switch to the theme or on another screen?

webdados commented 6 years ago

When you finish their wizard, I think on the same screen they suggest to take the WooCommerce wizard.

Anyway, it's just a matter of testing get_current_screen()->id with is_callable, I guess.

mattyza commented 6 years ago

Resolved in #56