Removes needless assignment of $page_slug = $post->post_name
Removing this assignment, since `$page_slug` is unused elsewhere in the theme, and there is no need to obfuscate what we are passing to `body_class`.
This commit is contained in:
@@ -26,8 +26,7 @@
|
||||
</head>
|
||||
|
||||
<body <?php if (isset($post)) {
|
||||
$page_slug = $post->post_name;
|
||||
body_class($page_slug);
|
||||
body_class($post->post_name);
|
||||
} else {
|
||||
body_class();
|
||||
}?>>
|
||||
|
||||
Reference in New Issue
Block a user