This minor update fixes compatibility with Polylang Pro. We also perfected the detection of unassigned home and blog pages and improved the Block Editor’s load time by resolving a glitch.
Detailed log
> View code changes.
> No GitHub issues closed.
For everyone
- Improved:
- Added an explanation of what Post Type Archives actually are. This alleviates unsurprising confusion, especially since WordPress only documented the code for this feature.
- Changed:
- When the front page is setup as a static page, but the page is missing (not assigned or deleted), TSF will now still consider the home request supported for SEO.
- In this case, both WordPress and TSF will treat the homepage as a blog. However, TSF won’t consider custom metadata from the actual blog page for this request, only for the real blog page.
- When the front page is setup as a static page, but the page is missing (not assigned or deleted), TSF will now still consider the home request supported for SEO.
- Fixed:
- Resolved an issue where the last word of a sentence shorter than maximum length without leading punctuation wasn’t considered for description generation.
- Resolved an issue where TSF incorrectly assumed 404 responses were of a blog type. This happened when the front page is static, but the posts page was left unassigned. This caused needless processing and a PHP warning, but nothing else changed by this fix — 404 messages were shown correctly.
- Resolved an issue where Polylang-compatibility wasn’t loaded for Polylang Pro.
- Resolved an issue where Polylang Pro wasn’t recognized as a translation plugin.
- Resolved an issue where TSF fetched post attributes from the Block Editor before they became available. This invoked multiple paints that slowed down the Block Editor load time and caused the title placeholder to show “Untitled” briefly.
For translators
- Added: New translations are available.
- Updated: The POT file contains new translations.
For developers
- Added:
- Method
tsf()->query()->utils()->blog_page_exists()
is new.
- Method
- Changed:
- Function
the_seo_framework_class()
no longer requires actionplugins_loaded
to have occurred. - Method
tsf()->query()->utils()->query_supports_seo()
now considers the homepage query supported when the homepage is assigned a broken ID. - Method
tsf()->query()->is_blog()
:- Will no longer validate
0
as a plausible blog page. - Will no longer validate
is_home()
when the blog page is not assigned.
- Will no longer validate
- Function
- Fixed:
- Privately marked class
\The_SEO_Framework\Admin\SEOBar\Builder
is no longer erroneously marked as a replacement for the deprecated class\The_SEO_Framework\Interpreters\SEOBar
. - Filter
the_seo_framework_allow_external_redirect
now fixes redirect URLs during the saving sequences again.
- Privately marked class
- Other:
- Removed Lodash dependencies in the Block Editor because Gutenberg is moving away from it.
- It’s 2024! So, we updated all files’ copyright year.