Skip to:
Content

bbPress.org

Changeset 4557


Ignore:
Timestamp:
12/07/2012 10:13:30 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Breadcrumbs:

  • Use is_singular() in bbp_get_breadcrumb().
  • Fixes issue where single reply trail would be incorrect.
  • Fixes #2086 (trunk)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/template-tags.php

    r4533 r4557  
    20522052
    20532053        // Get post ancestors
    2054         if ( is_page() || is_single() || bbp_is_forum_edit() || bbp_is_topic_edit() || bbp_is_reply_edit() ) {
     2054        if ( is_singular() || bbp_is_forum_edit() || bbp_is_topic_edit() || bbp_is_reply_edit() ) {
    20552055            $ancestors = array_reverse( (array) get_post_ancestors( get_the_ID() ) );
    20562056        }
Note: See TracChangeset for help on using the changeset viewer.