[Plugin: Breadcrumbs Plus] Bug and Fix
-
Hello Mr Developer!
First of, this is a great and simple plugin.
I found a small bug in the breadcrumbs_plus_get_items function.
It is assumed that ‘page_for_posts’ is assigned, resulting in a double appearance of the current page (since the default value is 0, get_permalink return this post’s link).
You should change this row:
if ( ‘post’ === $wp_query->post->post_type && $args[‘show_blog’] ) {`
into this row:
if ( 'post' === $wp_query->post->post_type && $args['show_blog'] && get_option( 'page_for_posts' ) ) {
Also, I think this row is redundant:
$show_on_front = get_option( 'show_on_front' );
Please fix this in the upcoming version!
Gal PeaceMan
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Breadcrumbs Plus] Bug and Fix’ is closed to new replies.