error notices
-
The plugin is throwing error notices on certain post pages where $post isn’t already defined. Can resolve this by adding
global $post
above line 131 of alpfie-wp-weather.phpand changing line 131 of the same file to also check for $post:
if ( $post && is_active_widget( false, false, $this->id_base ) && !has_shortcode($post->post_content, 'alfie_wp_weather' ) ) {
- The topic ‘error notices’ is closed to new replies.