• Sam Bull

    (@dreamsorcerer)


    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/#changelog

    There 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)
  • Thread Starter Sam Bull

    (@dreamsorcerer)

    Hmm, looking back at my history, it looks like it was a different theme I reported this issue on. My client must have changed themes at some point.

    Exactly the same issue and solution though.

Viewing 1 replies (of 1 total)
  • The topic ‘Theme broken in WP 5.0’ is closed to new replies.