The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Breadcrumbs Plus
Bug and Fix (2 posts)

  1. galpeaceman
    Posted 4 years ago #

    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


  2. Sebastian Cork
    Posted 4 years ago #

    For the sake of clarity, the above lines of referenced code can be found at line 129 and line 98 in breadcrumbs-plus.php.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic