Minor bug
-
While working with this plugin with WP_DEBUG set to true I am getting these notices:
Notice: Undefined index: page_info_single in /wp-content/plugins/genesis-post-info-meta/public/class-genesis-post-info-meta-public.php on line 124 Notice: Undefined index: page_meta_single in /wp-content/plugins/genesis-post-info-meta/public/class-genesis-post-info-meta-public.php on line 125In this case I’m not on a standard archive page, I’m on a regular page that happens to be outputting posts using the WP Views plugin.
The issue seems to be that in the function maybe_remove_post_info_meta in class-genesis-post-info-meta-public.php there is a check for the post type which is then used to check against the plugin option array, but in my use case the post type check returns ‘page’, which then throws the notice when used as part of an array index lookup against the plugin option array.
I’m currently fixing this by adding the following extra check to line 118 of the file:
// Bail if post type is a page. if ( 'page' === $post_type ) { return; }To support the use case of outputting posts on a standard page, I think it would be a good idea to include this check in the next version of the plugin.
Other than that, thank you for making a great plugin!
The topic ‘Minor bug’ is closed to new replies.