Breadcrumb NavXT 5.1.1

This is the first bug fix release of the 5.1 branch of Breadcrumb NavXT. 5.1.0 introduced a bug in the behavior of attachments, where the attachment and parent would have the same link. This has been fixed in 5.1.1. Additionally, the check for WP_Post in bcn_breadcrumb_trail::do_post() has been reduced from a fatal PHP error to a _doing_it_wrong() call producing useful information for developers.

Additionally, two bugs that affect versions other than just 5.1.0 were fixed. Breadcrumb NavXT will no longer cause PHP to throw errors or warnings on author archive pages for authors with zero published posts. The author archive code was modernized and made much more robust than that in 5.1.0 and earlier. Lastly, the parameters for the included widget’s (pre) text filter were changed to match the default WordPress text widget’s text filter parameters.

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]

Breadcrumb NavXT 5.1.0

Holy squashed bugs Batman! Breadcrumb NavXT 5.1.0 features 13 bug fixes and one new feature. Several small tweaks were made to the settings page to improve the overall experience, including handling HTML5 form validation errors in a more intuitive manner. The settings importer should work once again in this release. Previously, there was a bug where it read the version string incorrectly, causing the settings to never be imported. ‘typeof’ was added to the list of valid HTML tag attributes for all accepted HTML tags in the breadcrumb templates.

Internally, fixes were made to the bcn_breadcrumb_trail::do_author() and bcn_breadcrumb_trail::do_root() functions. Additionally, the bcn_breadcrumb_template filter should be available again, it was left out as a regression in the 5.0 release. Lastly, two edge cases were fixed in the custom post type default settings generation code.

Changes to bcn_breadcrumb_trail::do_post()

If you are using the Breadcrumb NavXT Multidimension Extensions plugin, please update it to version 1.7.1 or later. If you have written an extension plugin to Breadcrumb NavXT please take note.  As of Breadcrumb NavXT 5.1, bcn_breadcrumb_trail::do_post() expects to have a valid WP_Post object passed into it. Any plugins extending this function will need to be compatible, otherwise PHP will throw warnings.

Changes to breadcrumb_navxt and mtekk_adminKit classes

breadcrumb_navxt now stores it’s version as a constant (makes it easier to read without instantiating the class). Likewise, mtekk_adminKit‘s internal version is now a const. Lastly, a new filter, bcn_opts_update_prebk was added. This filter is run by the bcn_admin::opts_update_prebk function, it filters the options array just before being backed up during a settings save.

RDFa Breadcrumbs

New in 5.1.0 is RDFa Breadcrumbs support. All new installs will, by default, have settings configured to support RDFa Breadcrumbs. Since this primarily affects the breadcrumb templates, those upgrading from older versions can either manually add in the RDFa markup to their breadcrumb templates. Or, you can do a settings reset (via the help menu on the Breadcrumb NavXT settings page) to get a fresh set of settings that are the same as if you installed Breadcrumb NavXT for the first time.

Widget Features and Fixes

There were two bug fixes and one new feature for the included widget in this release. The new feature is support for RDFa Breadcrumbs, which has replaced Schema.org Beadcrumbs support (since none of the search providers actually use Schema.org Breadcrumbs support was dropped for now). On the bug fix front, a case where the widget could throw PHP warnings on the frontend was fixed. Lastly, the widget title and the text shown before the breadcrumb trail are now passed through filters (widget_title and widget_text) to aid translation plugins such as WPML.

The Translation Team:

[glot-translators=breadcrumb-navxt]

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]

WPMark Twenty Twelve

WPMark consists of two components: a WordPress plugin and a JMeter test plan. The WordPress plugin populates an empty install with the requisite demo content, sets up the requisite options, and generates cached copies of portions of the site for testing.

Continue reading

Breadcrumb NavXT 5.0.1

This is the first bug fix release of the 5.0 branch of Breadcrumb NavXT. There were several issues reported with the 5.0.0 release and most have been fixed in this release. An issue where the bcn_display_list() produced duplicate code attributes in the output. The settings page tabs’ style has been adjusted to fit better with WordPress 3.8’s reskinned admin area. Additionally, users will be warned if their settings will be overridden by a BCN_SETTINGS_* define. Finally, a few issues in the uninstaller caused by the change in plugin structure were fixed.

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]

Controlling Breadcrumb NavXT Settings From the Network Settings Page

Update 2015-10-30: Updated to reflect the default behavior change in Breadcrumb NavXT 5.3.

Starting with Breadcrumb NavXT 5.0, the oft-requested feature for a Network Settings Page for controlling the setting on all subsites in a WordPress multisite setup is now available. Since now there will be a combination of Network Settings and sub site settings, some extra intelligence is needed to pick settings appropriately. Given that the desired behavior will vary depending on use case, a few new globals have been added to switch between settings behavior modes.

Force Network Settings on All Sites (default behavior for 5.0-5.2)

Versions 5.0 through 5.2 used this mode as the default behavior for settings. In this mode, rather than default to the individual site settings (as they were the only ones that existed in WordPress multisite setups prior to Breadcrumb NavXT 5.0). Note, for 5.0 through 5.2, that all other BCN_* defines must be either not set or set to false to select this mode. Note that in 5.0.1 and later you should manually specify this mode:

define('BCN_SETTINGS_USE_NETWORK', true);

Force Individual Site Settings Only (pre-5.0 behavior, default behavior for 5.3+)

In 5.3 the default behavior was reverted to the pre-5.0 behavior of using only the individual sub site settings for Breadcrumb NavXT in a WordPress Multisite setup. Note, for 5.3 and later, that all other BCN_* defines must be either not set or set to false to select this mode. The following must be placed in your wp-config.php (or site specific plugin):

define('BCN_SETTINGS_USE_LOCAL', true);

Favor Individual Site Settings Over Network Settings

In Breadcrumb NavXT 5.0 this settings will merge the local (individual site’s) settings into the network settings (network settings are the ‘defaults’ for the wp_parse_args function). Use the following to enable this mode:

define('BCN_SETTINGS_FAVOR_LOCAL', true);

Note that the behavior of this mode is subtle and likely will look more like the local (individual site’s) settings than the network settings. In the future this mode may change slightly.

Favor Network Settings Over Individual Site Settings

In Breadcrumb NavXT 5.0 this settings will merge the network settings into the local (individual site’s) settings (local site settings are the ‘defaults’ for the wp_parse_args function). Use the following to enable this mode:

define('BCN_SETTINGS_FAVOR_NETWORK', true);

Note that the behavior of this mode is subtle and likely will look more like the network settings than the local (individual site’s) settings. In the future this mode may change slightly.

-John Havlik

[end of transmission, stay tuned]