Theme broken in WP 5.0
-
I reported this issue months ago, but my client has just tried updating this theme again, and it is still broken (rendering the entire website empty).
In header.php:78:
<?php wp_body_open(); ?>
As per the documentation, this function was only introduced in WP 5.2:
https://developer.www.ads-software.com/reference/functions/wp_body_open/#changelogThere are 2 reasonable fixes:
Mark the required WP version of all releases that include this function as minimum of 5.2, so older versions will not try to update the theme.Alternatively, check the function exists (or the WP version) before calling it. e.g.
<?php function_exists('wp_body_open') && wp_body_open(); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Theme broken in WP 5.0’ is closed to new replies.