Notice: Trying to get property ‘ID’ of non-object in
-
Please update line 94 of wp-attachments to check for valid post object. Here is the updated line to be used. This will correct the Notice: Trying to get property ‘ID’ of non-object notice.
if (!is_object($post) || $post->ID == ‘0’ || $post->ID == NULL || get_post_meta($post->ID, ‘wpa_off’, true) || post_password_required() || $checkrestrict ) { return $content; }
- The topic ‘Notice: Trying to get property ‘ID’ of non-object in’ is closed to new replies.