The SEO Framework

♥︎ Get license
★︎ My account
  • Extensions
  • Documentation
  • Blog
  • Premium
Home › The SEO Framework Changelog › 4.0.4

4.0.4

November 21, 2019 by Sybre Waaijer

WordPress 5.3 has a bug where the timezone set in PHP is taken into account when creating permalinks. Since this bug can cause canonical URLs with dates to point to a nonexistent page, we’re sending out this patch where TSF sets the timezone to flat UTC for its front-end generation.

The proper fix in WordPress 5.3.1 is due in about three weeks from now, after which we’ll consider reverting these changes.

Detailed log

> View code changes.
> View closed issues.

For everyone

  • Changed:
    • The plugin now handles the UTC timezone in its sitemap and front-end generation.
  • Fixed:
    • Patched a bug that causes permalinks with dates to point to a wrong URL.

For developers

  • the_seo_framework()->set_timezone() now also unsets the stored timezone string on reset.
  • the_seo_framework()->gmt2date() now uses gmdate() instead of date().
  • the_seo_framework()->html_output() now always sets the timezone regardless of settings, enforcing UTC.
Filed Under: The SEO Framework Changelog

About Sybre Waaijer

Developer of The SEO Framework plugins.
Twitter

Looking for something?

Do more with extensions

AMP

View extension
Connect TSF with AMP in just one click.

Incognito

View extension
Hide our markings from plain sight.

Commercial

The SEO Framework
Leidse Schouw 2
2408 AE Alphen a/d Rijn
The Netherlands
KvK: 61136735
BTW/VAT: NL205983078B01

Twitter

Professional

Premium
About
Contact
Press

Rational

Privacy Policy
Terms and Conditions
Refund Policy

Practical

Documentation
TSF on WordPress
TSF on GitHub
TSFEM on here
TSFEM on GitHub
Feature Highlights

Share moments in 2019 › The SEO Framework