Breadcrumb NavXT 6.2.0

Holy pre-Gutenberg Block introduction release Batman! Originally, 6.2 was to contain a Gutenberg Block, however it did not make the release. New in 6.2 are two filters (bcn_register_rest_endpoint and bcn_breadcrumb_assemble_json_ld_array), and support for following a primary (post parent hierarchy) and then secondary hierarchy (specified in the Hierarchy option for the post type).

A few bug fixes were included in this release. A bug preventing the settings reset option under the help drop down from working was fixed. A cause of PHP warnings to show up on the custom post type and custom taxonomy settings immediately after upgrading/migrating the settings to a new version was fixed.

Several behavior changes were made in this release. The biggest involves the REST API endpoints no longer being enabled by default. Additionally, the default templates were changed for two reasons. The first was to simplify and clarify the translatable content. The second was to improve BreadcrumbList compatibility. As part of these changes, the default unlinked breadcrumb templates no longer contain span elements, or any BreadcrumbList markup. This fixes an issue seen in the Google Structured Data Testing Tool.

REST API Changes

As introduced in 6.1, the REST API was enabled by default. In 6.2, this changes. Now, individual Breadcrumb NavXT REST API endpoints must be requested via the newly introduced bcn_register_rest_endpoint filter. This provides a method for plugins using the Breadcrumb NavXT REST API to request and expose only the endpoints that are needed. Note that the BCN_DISABLE_REST_API constant can still disable the Breadcrumb NavXT REST API and takes priority over the new filter.

These changes were made in an effort to decrease the attack surface of Breadcrumb NavXT and were prompted by concerns raised by Janek Vind. Previously, the author endpoint could be used to find usernames based on user ID if the display name was kept as the username. While WordPress itself will make this information available, some users employ methods to prevent WordPress from making this information public. Hence, changes were made to the default behavior in Breadcrumb NavXT

Primary/Secondary Hierarchy

This newly introduced option for post types (except pages), allows for hierarchies that start with the post parent and once that hierarchy has been exhausted follows the post hierarchy option. This allows attachment like behavior for custom post types.

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]

2 thoughts on “Breadcrumb NavXT 6.2.0

  1. Hi,

    after updating Breadcrumb NavXT 6.0.4 to 6.2 the following error ocurred:

    Notice: Undefined index: Hpost_news_template_no_anchor in /plugins/breadcrumb-navxt/class.bcn_breadcrumb_trail.php on line 510

    Notice: Undefined index: bpost_news_hierarchy_parent_first in /plugins/breadcrumb-navxt/class.bcn_breadcrumb_trail.php on line 526

    Notice: Undefined index: bpost_news_hierarchy_display in /plugins/breadcrumb-navxt/class.bcn_breadcrumb_trail.php on line 329

    Notice: Undefined index: bpost_news_archive_display in /plugins/breadcrumb-navxt/class.bcn_breadcrumb_trail.php on line 890

    Notice: Undefined index: apost_news_root in /plugins/breadcrumb-navxt/class.bcn_breadcrumb_trail.php on line 1036

    do you have any suggestions?

    kind regards

    • This has been fixed in 6.2.1 which was released today. It was caused due to an issue with how 6.2.0 handled default settings for hierarchical CPTs.

      -John Havlik

Comments are closed.