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>
|
</head>
|
||||||
|
|
||||||
<body <?php if (isset($post)) {
|
<body <?php if (isset($post)) {
|
||||||
$page_slug = $post->post_name;
|
body_class($post->post_name);
|
||||||
body_class($page_slug);
|
|
||||||
} else {
|
} else {
|
||||||
body_class();
|
body_class();
|
||||||
}?>>
|
}?>>
|
||||||
|
|||||||
Reference in New Issue
Block a user