Needed to update my Twenty Eleven theme to work with PHP 8.0
​
I am upgraded to WP v6.1.1 running on PHP7.4
​
Hosting plan is currently on PHP 7.4 and is forcing an update to PHP8
So, I upgraded my hosting plan to PHP 8.2
​
Currently running theme “Twenty Eleven”, which is not compatible with PHP 8 (only PHP 7)
I can’t recall the error/crash, but it occurred in the theme code.
​
So, I needed to update my theme.
I updated my theme to Twenty Twenty, and this works with PHP8.2
​
So, now I am on WP v6.1.1, PHP8.2, and theme 2020.
And the site is working!
​
Now, I just need to carry over my category exclusion code from functions.php
​
Does it seem like I did things correctly?
If so, this post may help the next guy.
​
[ad_2]
Twenty-Eleven is a core theme, it work with PHP 8.2 just like WP core. Did you directly modify the theme’s template files?