Merge pull request #135 from adamnbowen/patch-1
Fixes "Trying to get property of non-object" error on 404 pages
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
<script defer src="<?php echo get_template_directory_uri(); ?>/js/script.js"></script>
|
||||
</head>
|
||||
|
||||
<body <?php $page_slug = $post->post_name; body_class($page_slug); ?>>
|
||||
<body <?php if (isset($post)) { body_class($post->post_name); } else { body_class(); }?>>
|
||||
|
||||
<?php roots_wrap_before(); ?>
|
||||
<div id="wrap" class="container" role="document">
|
||||
|
||||
Reference in New Issue
Block a user