WordPress.org

Ready to get started?Download WordPress

Forums

Breadcrumbs Plus
Bug and Fix (2 posts)

  1. galpeaceman
    Member
    Posted 2 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

    http://wordpress.org/extend/plugins/breadcrumbs-plus/

  2. Sebastian Cork
    Member
    Posted 2 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