Bug with custom taxonomy
-
Hi there,
Hope to get more lucky with this post.
There is little glitch in file inc/core/like-dislike-render.php. When using your plugin with a custom taxonomy (my own plugin creates it), I get a notice when visiting a page created on the fly with the taxonomy:Warning: Attempt to read property "post_type" on int in wp-content/plugins/posts-like-dislike/inc/cores/like-dislike-render.php on line 11I fixed the bug replacing
if (!in_array($post->post_type, $checked_post_types)) {by
if ( !isset( $post->post_type ) || !in_array($post->post_type, $checked_post_types)) {
The topic ‘Bug with custom taxonomy’ is closed to new replies.