Breadcrumb NavXT 6.0.2

This is the second, and hopefully last, bug fix release of the 6.0 branch of Breadcrumb NavXT. Four bugs were fixed in this release: Two issues with bcn_display/bcn_display_list, an issue with page hierarchy, and an issue with how the settings page displayed the Breadcrumb Separator.

In rewriting bcn_breadcrumb_trail::display, a common set of code is now used for both bcn_display_list and bcn_display. However, there was an error in 6.0.0 and 6.0.1 where a requisite parameter was not passed into the new bcn_breadcrumb_trail::display when calling bcn_display_list.

The $reverse parameter for bcn_display and bcn_display_list, while reversing the order of the breadcrumbs, neglected to handle the separator and element classes correctly. Changes made to bcn_display in 6.0.0 introduced part of this issue. Reviewing past releases, improper handling of the element classes had been part of bcn_display_list for quite a while.

In the refactoring of the code handling posts, the code that handles pages is now the same as any other hierarchical post type. However, this depends on internally set page hierarchy type and page hierarchy display settings. Since these settings are not user facing, there was a way for them to become corrupt. This results in pages not having their parent’s in the breadcrumb trail.

In the settings page, the Breadcrumb Separator and the Paged Template were changed from regular text inputs to textboxes. Changes to the text input in adminKit 2.0 changed how HTML was handled. While the fields handled HTML, HTML entities (e.g. >) were rendered by the browser. This could cause confusion as this behavior was inconsistent with the other settings fields.

Lastly, a warning is now raised if bcn_breadcrumb::type is not an array.

As always, you can grab the latest version of Breadcrumb NavXT from the Breadcrumb NavXT page. If you experience any issues with this version of Breadcrumb NavXT, please leave a comment on this post detailing the issue.

-John Havlik

[end of transmission, stay tuned]

3 thoughts on “Breadcrumb NavXT 6.0.2

  1. Hi John,

    I’m managing a dual language site (English and Chinese) and since the update to 6.0.2 the plugin is adding an extra step in the trail but only on the Chinese language version. On the English language version everything is working correctly.

    If you take a look at this page:

    http://www.preowned.karlmayer.com/pre-owned-machinery/warp-knitting-machines/

    . . . the breadcrumb trail correctly shows ‘Start > Pre-owned Machinery > Warp Knitting’.

    However, if you switch to the Chinese version ‘Start’ is added, in English, after the Chinese translation of Start. So on that page ‘Start’ is duplicated, once in Chinese and again in English, producing 4 steps in the trail instead of 3.

    I’m using WPML with String Translations to manage the dual language functionality and all strings for Breadcrumbs NavXT are translated (as shown by the fact that ‘Start’ is correctly translated in the trail on the Chinese version)

    I’ve been through the settings and I cannot see where Breadcrumbs NavXT is getting the additional ‘Start’ step from on the Chinese version.

    I’m on WP 4.9.1

    Could you take a look and suggest some steps I can take..?

    Many thanks!

    Martin.

Comments are closed.