This minor update fixes more issues our community found after the release of TSF v5.0.0. We also improved the calculation of primary terms with child terms and how breadcrumbs handle post type archives. And again, we improved the performance.
Detailed log
> View code changes.
> No GitHub issues closed.
For everyone
- Changed:
- The fallback primary term now determines the last child of a hierarchical term if its parent has the lowest term ID. Props @robbybobble for reporting this.
- This is unlike how WordPress determines this for Categories, but like how WooCommerce does for Product Categories.
- Caveat: But only if its parents are in the selected term chain. We could calculate this more accurately, but we’d have to bypass the term cache. We now perform inexpensive operations to determine the correct primary term.
- The fallback primary term now determines the last child of a hierarchical term if its parent has the lowest term ID. Props @robbybobble for reporting this.
- Improved:
- The breadcrumb shortcode now tries to remove the inline margin in front of its text. Props @hathaihaojp for reporting this.
- Although we increased specificity, this may still be overwritten by the theme styles, which is intended behavior: enforcing styles makes theming difficult.
- Breadcrumbs now include a registered post type archive before the terms. Props @touchdowntech for detailing this.
- This will become togglable in a future update. Stay tuned!
- If you went out of your way implementing TSF’s breadcrumbs, you may need to rethink and tweak that. Sorry about that! — This is a new feature, and we’re still learning how to improve it.
- The breadcrumb shortcode now tries to remove the inline margin in front of its text. Props @hathaihaojp for reporting this.
- Removed:
- We temporarily removed support for the GitHub Updater because of unforeseen quirks, such as it renaming the plugin folder and updating from our development branch. Props @eusebiuoprinoiu for reporting this.
- In a future update, we’ll reintroduce this with the quirks resolved.
- We temporarily removed support for the GitHub Updater because of unforeseen quirks, such as it renaming the plugin folder and updating from our development branch. Props @eusebiuoprinoiu for reporting this.
- Fixed:
- Resolved an issue where breadcrumbs included non-public taxonomies for their trail.
- Resolved an issue where term sitemaps wouldn’t load when using the “not optimized” WordPress Core sitemaps.
- Resolved a fatal error when bbPress is selectively unloaded. Props @technologypoet for reporting this.
- Resolved a fatal error when TSF options disappear or have failed to be registered. Now, the plugin falls back to its default values.
- Resolved an issue where the primary term cache was bypassed when no primary term could be determined (zero terms assigned to a post).
- Other:
- Verified support for PHP 8.3.
For developers
- Changed:
- We changed all indexes for filter
the_seo_framework_breadcrumb_shortcode_css
in order to resolve issues with displaying the breadcrumb.- Now, all indexes are prefixed with
nav
to increase specificity. .$class ol li:not(:last-child) :where(a,span)
is gone altogether.
- Now, all indexes are prefixed with
- We changed all indexes for filter
- Fixed:
- Resolved a deprecation notice when bbPress was active.