This minor update addresses a regression where the singular-archive canonical URLs always pointed to the first page.
Detailed log
> View code changes.
> No GitHub issues were closed.
For everyone
- Improved:
- Canonical URLs now generate quicker.
- Fixed:
- The singular archive (blog/shop) page’s canonical URL now points to the current page.
- Other:
- It is 2022 now… so, we extended the plugin’s copyright year notes.
For developers
- Added:
- Function
\The_SEO_Framework\has_run()
is now part of the public API.- It helps test whether the caller function was already called before.
- Method
tsf()->add_pagination_to_url()
. This is a replacement fortsf()->add_url_pagination()
, which is now marked for deprecation.
- Function
- Changed:
- Method
tsf()->get_canonical_url()
may now have its first argument populated.- Method
tsf()->create_canonical_url()
is now marked for deprecation. You can exchange the method name toget_canonical_url()
without any other changes. This change is backward compatible but may cause (ignorable) PHP notices.
- Method
- Filter
the_seo_framework_list_table_data
now supports index keyplaceholder
for$data
.
- Method
- Removed:
- Privately-marked function
\The_SEO_Framework\_load_trait()
has been removed. We do not need traits in TSF (yet).
- Privately-marked function
- Other:
- Made the code a little more procedural.