WP 5.3 broke Upcoming widget
-
Hi Kieran. Thanks for your many years of work to keep your plugin up and running. The good news is that it still works. The bad news is that since WP5.3, the “Upcoming Events” widget may be broken (it certainly was for one of my oldest websites). I think it depends on how old your website is and what operating system it is running on.
It seems the boys and girls at WP decided to change the “date_i18n” function. In fact, they no longer recommend its use. I’m still investigating what they have done but so far I can give you a reference to read up on it:
Date/Time component improvements in WordPress 5.3Your Upcoming widget was correctly displaying all the events but, on converting the date for display using “date_i18n”, the date was shifted back 1 day (e.g. I had a public holiday event for Christmas and it came up on 24 Dec). On your code (calendar.php) on line 2044 (of version 1.3.13) I changed the “date_i18n” function to “wp_date” as recommended by the boys and girls at WP. That fixed the problem. This is your only use of “date_i18n”. Hope you find this useful to create a new version for your plugin.
- The topic ‘WP 5.3 broke Upcoming widget’ is closed to new replies.